So many changes. Broken.
[invirt/third/libt4.git] / rsm_tester.cc
index 5507f80..42aaebe 100644 (file)
@@ -2,9 +2,9 @@
 // RSM test client
 //
 
 // RSM test client
 //
 
-#include "types.h"
-#include "rsm_protocol.h"
-#include "rsmtest_client.h"
+#include "include/types.h"
+#include "include/rsm_protocol.h"
+#include "include/rsmtest_client.h"
 
 int main(int argc, char *argv[]) {
     global = new t4_state('t');
 
 int main(int argc, char *argv[]) {
     global = new t4_state('t');
@@ -15,13 +15,11 @@ int main(int argc, char *argv[]) {
 
     rsmtest_client *lc = new rsmtest_client(argv[1]);
     string command(argv[2]);
 
     rsmtest_client *lc = new rsmtest_client(argv[1]);
     string command(argv[2]);
-    if (command == "partition") {
+    if (command == "partition")
         LOG_NONMEMBER << "net_repair returned " << lc->net_repair(std::stoi(argv[3]));
         LOG_NONMEMBER << "net_repair returned " << lc->net_repair(std::stoi(argv[3]));
-    } else if (command == "breakpoint") {
-        int b = std::stoi(argv[3]);
-        LOG_NONMEMBER << "breakpoint " << b << " returned " << lc->breakpoint(b);
-    } else {
+    else if (command == "breakpoint")
+        LOG_NONMEMBER << "breakpoint " << argv[3] << " returned " << lc->breakpoint(std::stoi(argv[3]));
+    else
         LOG_NONMEMBER << "Unknown command " << argv[2];
         LOG_NONMEMBER << "Unknown command " << argv[2];
-    }
     return 0;
 }
     return 0;
 }