Mercurial > hg > fxanalyse
diff DDS_Fox.c @ 175:e5ad3ed47d2c
Code cleanup
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Fri, 21 Feb 2014 18:38:44 +0100 |
parents | 8e6a2ec85169 |
children | 12df3a2b18de |
line wrap: on
line diff
--- a/DDS_Fox.c Fri Feb 21 18:37:32 2014 +0100 +++ b/DDS_Fox.c Fri Feb 21 18:38:44 2014 +0100 @@ -309,10 +309,6 @@ static unsigned int timeout = 0; // milliseconds -int OnTCPEvent(unsigned handle, int xType, int errCode, void *callbackData) -{ - return 0; -} static int SendCmd(char *Buffer, DDSParameter *Param) { @@ -321,7 +317,7 @@ #ifdef DEBUG fprintf(stderr, "> %s\n", Buffer); #endif - if (ConnectToTCPServer (&hConv, Param->Port, Param->ip, OnTCPEvent, Response, timeout) < 0) { + if (ConnectToTCPServer (&hConv, Param->Port, Param->ip, NULL, NULL, timeout) < 0) { error("Connect failed"); return -1; } @@ -352,7 +348,7 @@ #ifdef DEBUG fprintf(stderr, "> %s\n", Buffer); #endif - if (ConnectToTCPServer (&hConv, Param->Port, Param->ip, OnTCPEvent, Response, timeout) < 0) { + if (ConnectToTCPServer (&hConv, Param->Port, Param->ip, NULL, NULL, timeout) < 0) { error("Connect failed"); return -1; }