From: hadaq Date: Thu, 11 Nov 2010 03:03:55 +0000 (+0000) Subject: update X-Git-Tag: v6.0~175 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=e1ebf544dbd998abaacda69bcaa056973dc136d9;p=trbnettools.git update --- diff --git a/trbnetd/trbnetrpc.c b/trbnetd/trbnetrpc.c index c229dca..3161db3 100644 --- a/trbnetd/trbnetrpc.c +++ b/trbnetd/trbnetrpc.c @@ -5,7 +5,7 @@ #include "trbnet.h" -const char trbnet_version[] = "$Revision: 1.5 $"; +const char trbnet_version[] = "$Revision: 1.6 $"; unsigned int trb_debug = 0; unsigned int trb_dma = 0; @@ -21,11 +21,6 @@ static void copyStatus(const Status* status) trb_term.channel = status->channel; } -int init_ports() -{ - return trb_connect(NULL); -} - int trb_connect(const char *server) { if (server == NULL) { @@ -52,6 +47,10 @@ int trb_connect(const char *server) return 0; } +int init_ports() +{ + return trb_connect(NULL); +} int trb_register_read(uint16_t trb_address, uint16_t reg_address,