diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-02-03 22:48:20 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-02-03 22:48:20 +0000 |
commit | 281710f10d2a67eaa6668571661e9ef4250a7768 (patch) | |
tree | 67db939f06b268e7ecd9e85c3391001fe4c6ef43 /capture_sync.c | |
parent | ee99dbed353fe33bbb8d5d2d1534940cf74cd954 (diff) |
move capture_file_fd field from capture_file to capture_opts type, as this is the place where it should be
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13268 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/capture_sync.c b/capture_sync.c index c07555df3c..6a88e9fcf9 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -251,7 +251,7 @@ sync_pipe_do_capture(capture_options *capture_opts, gboolean is_tempfile) { argv = sync_pipe_add_arg(argv, &argc, cfile.save_file); argv = sync_pipe_add_arg(argv, &argc, "-W"); - sprintf(save_file_fd,"%d",cfile.save_file_fd); /* in lieu of itoa */ + sprintf(save_file_fd,"%d",capture_opts->save_file_fd); /* in lieu of itoa */ argv = sync_pipe_add_arg(argv, &argc, save_file_fd); if (capture_opts->has_autostop_packets) { @@ -396,7 +396,7 @@ sync_pipe_do_capture(capture_options *capture_opts, gboolean is_tempfile) { /* Close the save file FD, as we won't be using it - we'll be opening it and reading the save file through Wiretap. */ - close(cfile.save_file_fd); + close(capture_opts->save_file_fd); if (fork_child == -1) { /* We couldn't even create the child process. */ |