]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
updated Makefile so now it can be compiled on cris and linux system
authorhadaq <hadaq>
Sun, 22 May 2011 23:36:29 +0000 (23:36 +0000)
committerhadaq <hadaq>
Sun, 22 May 2011 23:36:29 +0000 (23:36 +0000)
libtrbnet/trbcmd.c

index 8e4a0fa11242ec6fdaffdfbb146abfa3fbdc801c..9a72f7f3522568b3bcdd4c65c598972914824e78 100644 (file)
@@ -25,7 +25,7 @@
 
 static int hexMode = HEXMODE;
 
-static const char trbcmd_version[] = "$Revision: 2.67 $";
+static const char trbcmd_version[] = "$Revision: 2.68 $";
 
 #define BACKLOG 10
 static uint16_t tcp_port = 55555;
@@ -257,7 +257,10 @@ int start(int argc, char **argv)
     }
   }
   if (tcp_mode == 0) {
-    if (init_ports() == -1) return -1;
+    if (init_ports() == -1) {
+      trb_error("init_ports");
+      return -1;
+    }
   }
 
   /* Start repeat-loop */
@@ -1407,7 +1410,10 @@ int main(int argc, char **argv)
               tcp_port);
     }
 
-    if (init_ports() == -1) exit(EXIT_FAILURE);
+    if (init_ports() == -1) {
+      trb_error("init_ports");
+      exit(EXIT_FAILURE);
+    }
 
     /* Enter an infinite loop to accept clients */
     while (1) {