From: hadaq Date: Sun, 22 May 2011 23:36:29 +0000 (+0000) Subject: updated Makefile so now it can be compiled on cris and linux system X-Git-Tag: v6.0~151 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=e9807c2cd62a011fa4ceedbf73824584a9fa80de;p=trbnettools.git updated Makefile so now it can be compiled on cris and linux system --- diff --git a/libtrbnet/trbcmd.c b/libtrbnet/trbcmd.c index 8e4a0fa..9a72f7f 100644 --- a/libtrbnet/trbcmd.c +++ b/libtrbnet/trbcmd.c @@ -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) {