Clean-ups
[invirt/third/libt4.git] / lock_demo.cc
index 714c4e3..88383ab 100644 (file)
@@ -1,13 +1,12 @@
 #include "lock_client.h"
 
-char log_thread_prefix = 'd';
-
 int main(int argc, char *argv[]) {
+    global = new t4_state('d');
     if(argc != 2) {
-        cerr << "Usage: " << argv[0] << " [host:]port" << endl;
+        LOG_NONMEMBER << "Usage: " << argv[0] << " [host:]port";
         return 1;
     }
 
     lock_client *lc = new lock_client(argv[1]);
-    LOG_NONMEMBER("stat returned " << lc->stat("1"));
+    LOG_NONMEMBER << "stat returned " << lc->stat("1");
 }