# HG changeset patch # User Daniele Nicolodi # Date 1393004324 -3600 # Node ID e5ad3ed47d2c5da848dea6d1357e8889b38721e9 # Parent d96f0b04f7fec7bbf70c0ed8fb300efd3ee65c5b Code cleanup diff -r d96f0b04f7fe -r e5ad3ed47d2c DDS_Fox.c --- 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; }