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_demo.cc
diff --git
a/lock_demo.cc
b/lock_demo.cc
index
90f0047
..
714c4e3
100644
(file)
--- a/
lock_demo.cc
+++ b/
lock_demo.cc
@@
-1,25
+1,13
@@
-//
-// Lock demo
-//
-
-#include "lock_protocol.h"
#include "lock_client.h"
#include "lock_client.h"
-#include "rpc/rpc.h"
-#include <arpa/inet.h>
-#include <vector>
-#include <stdlib.h>
-#include <stdio.h>
-char tprintf_thread_prefix = 'd';
+char log_thread_prefix = 'd';
-int
-main(int argc, char *argv[])
-{
+int main(int argc, char *argv[]) {
if(argc != 2) {
if(argc != 2) {
- fprintf(stderr, "Usage: %s [host:]port\n", argv[0]);
+ cerr << "Usage: " << argv[0] << " [host:]port" << endl;
return 1;
}
lock_client *lc = new lock_client(argv[1]);
return 1;
}
lock_client *lc = new lock_client(argv[1]);
- printf ("stat returned %d\n", lc->stat("1"));
+ LOG_NONMEMBER("stat returned " << lc->stat("1"));
}
}