]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Thu, 11 Nov 2010 03:03:55 +0000 (03:03 +0000)
committerhadaq <hadaq>
Thu, 11 Nov 2010 03:03:55 +0000 (03:03 +0000)
trbnetd/trbnetrpc.c

index c229dca3fcde213c19ef79de23aea136c7d3962c..3161db3c183991f7cf897a9b0216259ad3848bfb 100644 (file)
@@ -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,