aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-09-29 01:15:11 +0000
committerGuy Harris <guy@alum.mit.edu>2007-09-29 01:15:11 +0000
commit6d065e2eb2792e6b4add180d7ac6190ecff3f925 (patch)
tree9705008887dc92c151701e1222c26140e4d98246 /dumpcap.c
parent343fa12c8260ecb9e98956871cff7cf0a6194051 (diff)
Don't hardcode the notion that the sync pipe is the standard output into
sync_pipe_errmsg_to_parent(); have it take the FD for the sync pipe as an argument. svn path=/trunk/; revision=23024
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 1d880fec38..a9c78a32c7 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -600,7 +600,7 @@ report_capture_error(const char *error_msg, const char *secondary_error_msg)
"Primary Error: %s", error_msg);
g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_DEBUG,
"Secondary Error: %s", secondary_error_msg);
- sync_pipe_errmsg_to_parent(error_msg, secondary_error_msg);
+ sync_pipe_errmsg_to_parent(1, error_msg, secondary_error_msg);
} else {
fprintf(stderr, "%s\n%s\n", error_msg, secondary_error_msg);
}