aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-06-23 21:27:37 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-06-23 21:27:37 +0000
commit42ca537b74810959aa9aae12081f3e0436a08714 (patch)
treec9f23dfca7bd80633f27d26049a3e3a7f461f802 /capture_sync.c
parent2d559b959b3729f53e5c22fd7bdc5aa566291755 (diff)
Rename an argument to avoid colliding with pipe().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25556 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/capture_sync.c b/capture_sync.c
index 3c537c0f29..f8c836dfc2 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -1047,22 +1047,22 @@ static gboolean pipe_data_available(int pipe) {
/* Read a line from a pipe, similar to fgets */
int
-sync_pipe_gets_nonblock(int pipe, char *bytes, int max) {
+sync_pipe_gets_nonblock(int pipe_fd, char *bytes, int max) {
int newly;
int offset = -1;
while(offset < max - 1) {
offset++;
- if (! pipe_data_available(pipe))
+ if (! pipe_data_available(pipe_fd))
break;
- newly = read(pipe, &bytes[offset], 1);
+ newly = read(pipe_fd, &bytes[offset], 1);
if (newly == 0) {
/* EOF - not necessarily an error */
break;
} else if (newly < 0) {
/* error */
g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG,
- "read from pipe %d: error(%u): %s", pipe, errno, strerror(errno));
+ "read from pipe %d: error(%u): %s", pipe_fd, errno, strerror(errno));
return newly;
} else if (bytes[offset] == '\n') {
break;