projects
/
invirt/third/libt4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More marshalling simplification
[invirt/third/libt4.git]
/
lock_smain.cc
diff --git
a/lock_smain.cc
b/lock_smain.cc
index
d62a25b
..
3bd7376
100644
(file)
--- a/
lock_smain.cc
+++ b/
lock_smain.cc
@@
-1,10
+1,6
@@
-#include "rpc/rpc.h"
+#include "lock_server.h"
#include <arpa/inet.h>
#include <arpa/inet.h>
-#include <stdlib.h>
-#include "threaded_log.h"
#include <unistd.h>
#include <unistd.h>
-#include "lock_server.h"
-#include "rsm.h"
// Main loop of lock_server
// Main loop of lock_server
@@
-17,7
+13,7
@@
int main(int argc, char *argv[]) {
srandom((uint32_t)getpid());
if(argc != 3){
srandom((uint32_t)getpid());
if(argc != 3){
- fprintf(stderr, "Usage: %s [master:]port [me:]port\n", argv[0]);
+ cerr << "Usage: " << argv[0] << " [master:]port [me:]port" << endl;
exit(1);
}
exit(1);
}