From: hadaq Date: Fri, 11 Jun 2010 22:00:00 +0000 (+0000) Subject: update X-Git-Tag: v6.0~257 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=c2d7d5e38781c19d6ab949ff8339b5d2c4a21e59;p=trbnettools.git update --- diff --git a/libtrbnet/trbcmd.c b/libtrbnet/trbcmd.c index b6ed578..a367a35 100644 --- a/libtrbnet/trbcmd.c +++ b/libtrbnet/trbcmd.c @@ -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 */