diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-04-06 07:09:56 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-04-06 07:09:56 +0000 |
commit | f73c579d5531540775dd4ac10af305fb5206790b (patch) | |
tree | c84064fb40b44f049e500ce25b036c389793a0c7 /wiretap/file_access.c | |
parent | 7fa6d929cf2dc248fa35259ce8094b7b906b2022 (diff) | |
download | wireshark-f73c579d5531540775dd4ac10af305fb5206790b.tar.gz |
From Jakub Zawadzki:
file-wrappers.[ch] is used only for reading files, and mode is always
"rb".
Attached patch removes 'mode' argument from file_open() & filed_open().
svn path=/trunk/; revision=36493
Diffstat (limited to 'wiretap/file_access.c')
-rw-r--r-- | wiretap/file_access.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c index 19df5e9f80..60a4eac110 100644 --- a/wiretap/file_access.c +++ b/wiretap/file_access.c @@ -307,7 +307,7 @@ wtap* wtap_open_offline(const char *filename, int *err, char **err_info, g_free(wth); return NULL; } - if (!(wth->fh = filed_open(wth->fd, "rb"))) { + if (!(wth->fh = filed_open(wth->fd))) { *err = errno; ws_close(wth->fd); g_free(wth); @@ -315,7 +315,7 @@ wtap* wtap_open_offline(const char *filename, int *err, char **err_info, } if (do_random) { - if (!(wth->random_fh = file_open(filename, "rb"))) { + if (!(wth->random_fh = file_open(filename))) { *err = errno; file_close(wth->fh); g_free(wth); |