]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Fri, 11 Jun 2010 22:00:00 +0000 (22:00 +0000)
committerhadaq <hadaq>
Fri, 11 Jun 2010 22:00:00 +0000 (22:00 +0000)
libtrbnet/trbcmd.c

index b6ed578b068cf5bedc7b4a3b24edcbf6eca38ea6..a367a3594b15ea0ee6a59bd85120fc7009b36684 100644 (file)
@@ -35,7 +35,7 @@
 
 static int hexMode = HEXMODE;
 
-static const char trbcmd_version[] = "$Revision: 2.49 $";
+static const char trbcmd_version[] = "$Revision: 2.50 $";
 
 #define BACKLOG 10
 static uint16_t tcp_port = 55555;
@@ -1130,11 +1130,7 @@ int main(int argc, char **argv)
 
   if (strcmp(argv[argc - 1], "tcp") != 0) {
     /* Run normal TRBCMD */
-#ifndef TRB_RPC
     init_ports();
-#else
-    trb_connect(NULL);
-#endif
 
     if (start(argc, argv) == 0) {
       exit(EXIT_SUCCESS);
@@ -1272,11 +1268,7 @@ int main(int argc, char **argv)
         myPid = getpid();
         write(myFd, "\n", 1);
         atexit(atexit0);
-#ifndef TRB_RPC
-        init_ports();
-#else
-        trb_connect(NULL);
-#endif     
+
         clientout = fdopen(myFd, "a");
         
         /* redirect output */