From 7b44961517bbacf6920a7482ff33afc0ff3d9e78 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 21 Dec 2010 13:55:29 +0000 Subject: [PATCH] fix: function and variable with same name --- src/transport/test_plugin_transport_wlan_dummy.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/transport/test_plugin_transport_wlan_dummy.c b/src/transport/test_plugin_transport_wlan_dummy.c index adfada461..db50bd125 100644 --- a/src/transport/test_plugin_transport_wlan_dummy.c +++ b/src/transport/test_plugin_transport_wlan_dummy.c @@ -124,20 +124,20 @@ main(int argc, char *argv[]) else if (pid == 0) // CHILD PROCESS { int rv = 0; - int read = 0; + int readc = 0; int pos = 0; char line[MAXLINE]; while (closeprog == 0) { - read = 0; + readc = 0; - while (read < sizeof( struct RadiotapHeader) + sizeof(struct GNUNET_MessageHeader)){ + while (readc < sizeof( struct RadiotapHeader) + sizeof(struct GNUNET_MessageHeader)){ if ((rv = read(STDIN_FILENO, line, MAXLINE)) < 0) { perror("READ ERROR FROM STDIN"); } - read += rv; + readc += rv; } pos = 0; @@ -149,9 +149,9 @@ main(int argc, char *argv[]) //do not send radiotap header pos += sizeof( struct RadiotapHeader); - while (pos < read) + while (pos < readc) { - pos += fwrite(&line[pos], 1, read - pos, fpout); + pos += fwrite(&line[pos], 1, readc - pos, fpout); } } -- 2.25.1