From e9807c2cd62a011fa4ceedbf73824584a9fa80de Mon Sep 17 00:00:00 2001 From: hadaq Date: Sun, 22 May 2011 23:36:29 +0000 Subject: [PATCH] updated Makefile so now it can be compiled on cris and linux system --- libtrbnet/trbcmd.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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) { -- 2.43.0