else if (pid == 0) // CHILD PROCESS\r
{\r
int rv = 0;\r
- int read = 0;\r
+ int readc = 0;\r
int pos = 0;\r
char line[MAXLINE];\r
\r
while (closeprog == 0)\r
{\r
- read = 0;\r
+ readc = 0;\r
\r
- while (read < sizeof( struct RadiotapHeader) + sizeof(struct GNUNET_MessageHeader)){\r
+ while (readc < sizeof( struct RadiotapHeader) + sizeof(struct GNUNET_MessageHeader)){\r
if ((rv = read(STDIN_FILENO, line, MAXLINE)) < 0)\r
{\r
perror("READ ERROR FROM STDIN");\r
}\r
- read += rv;\r
+ readc += rv;\r
}\r
\r
pos = 0;\r
//do not send radiotap header\r
pos += sizeof( struct RadiotapHeader);\r
\r
- while (pos < read)\r
+ while (pos < readc)\r
{\r
- pos += fwrite(&line[pos], 1, read - pos, fpout);\r
+ pos += fwrite(&line[pos], 1, readc - pos, fpout);\r
}\r
}\r
\r