]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
RPC Update
authorhadaq <hadaq>
Fri, 21 May 2010 15:40:26 +0000 (15:40 +0000)
committerhadaq <hadaq>
Fri, 21 May 2010 15:40:26 +0000 (15:40 +0000)
libtrbnet/trbdhcp.c

index ef1f559dca63629192cb9559ce41c8a33afeaa34..ecf092ef6b841ecc0db959747e887d776a47945d 100644 (file)
@@ -10,7 +10,7 @@
 #include <trbnet.h>
 #include <trberror.h>
 
-static const char trbdhcp_version[] = "$Revision: 1.3 $";
+static const char trbdhcp_version[] = "$Revision: 1.4 $";
 
 typedef struct {
   uint16_t address;
@@ -28,7 +28,7 @@ static int readConfigFile(const char* fileName)
 {
   FILE* configFile = NULL;
   char *line = NULL;
-  int lineLen = 0;
+  size_t lineLen = 0;
   unsigned int lineCtr = 0;
   unsigned int counter = 0;
   uint32_t address;
@@ -172,11 +172,7 @@ int main(int argc, char ** argv)
   }
   
   /* Open ports */
-#ifndef TRB_RPC
   init_ports();
-#else
-  trb_connect(NULL);
-#endif  
   
   /* Read present UIDs */
   status = trb_read_uid(trbAddress, trbBuffer,