gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r13970 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r13970 - gnunet/src/transport
Date: Tue, 21 Dec 2010 14:55:29 +0100

Author: wachs
Date: 2010-12-21 14:55:29 +0100 (Tue, 21 Dec 2010)
New Revision: 13970

Modified:
   gnunet/src/transport/test_plugin_transport_wlan_dummy.c
Log:
fix: function and variable with same name


Modified: gnunet/src/transport/test_plugin_transport_wlan_dummy.c
===================================================================
--- gnunet/src/transport/test_plugin_transport_wlan_dummy.c     2010-12-21 
13:55:22 UTC (rev 13969)
+++ gnunet/src/transport/test_plugin_transport_wlan_dummy.c     2010-12-21 
13:55:29 UTC (rev 13970)
@@ -124,20 +124,20 @@
   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 @@
           //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);
             }
         }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]