From c2d7d5e38781c19d6ab949ff8339b5d2c4a21e59 Mon Sep 17 00:00:00 2001 From: hadaq Date: Fri, 11 Jun 2010 22:00:00 +0000 Subject: [PATCH] update --- libtrbnet/trbcmd.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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 */ -- 2.43.0