diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-10-31 17:43:51 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-10-31 17:43:51 +0000 |
commit | 841e3a0a3fa0169d011aa64f4f2882f9f34895bd (patch) | |
tree | 17462b66f0ba5c9c95990f2796189cd1e98db691 /dumpcap.c | |
parent | 623861f855531de6f27b775e3f2c350e41342901 (diff) |
Fixed some "ignoring return value" warnings.
This is the last commit to make it compile clean on Ubuntu 8.10.
svn path=/trunk/; revision=26654
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1693,7 +1693,9 @@ capture_loop_open_output(capture_options *capture_opts, int *save_file_fd, char tmpname[128+1]; gchar *capfile_name; gboolean is_tempfile; - +#ifndef _WIN32 + int ret; +#endif g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_DEBUG, "capture_loop_open_output: %s", (capture_opts->save_file) ? capture_opts->save_file : ""); @@ -1775,7 +1777,7 @@ capture_loop_open_output(capture_options *capture_opts, int *save_file_fd, /* capture_opts.save_file is "g_free"ed later, which is equivalent to "g_free(capfile_name)". */ #ifndef _WIN32 - fchown(*save_file_fd, capture_opts->owner, capture_opts->group); + ret = fchown(*save_file_fd, capture_opts->owner, capture_opts->group); #endif return TRUE; |