From: hadaq Date: Fri, 21 May 2010 15:40:26 +0000 (+0000) Subject: RPC Update X-Git-Tag: v6.0~261 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=3a8824b853138daf5710aef44967fe724fde96bc;p=trbnettools.git RPC Update --- diff --git a/libtrbnet/trbdhcp.c b/libtrbnet/trbdhcp.c index ef1f559..ecf092e 100644 --- a/libtrbnet/trbdhcp.c +++ b/libtrbnet/trbdhcp.c @@ -10,7 +10,7 @@ #include #include -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,