From 3a8824b853138daf5710aef44967fe724fde96bc Mon Sep 17 00:00:00 2001 From: hadaq Date: Fri, 21 May 2010 15:40:26 +0000 Subject: [PATCH] RPC Update --- libtrbnet/trbdhcp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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, -- 2.43.0