diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-10 22:04:14 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-10 22:04:14 +0000 |
commit | 5902d1177fffb4c840328f958ddd9c48dd558164 (patch) | |
tree | 397cc69c6bed716cbb3caae26a8488ec6ca9203c | |
parent | a3c133ddcf7c59f2596d00b113ef70a521d16dff (diff) |
To fill in a ws_statb64, you must use ws_fstat64.
Declare ws_stdio_stat64, as that's its new name.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36549 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | wiretap/file_access.c | 2 | ||||
-rw-r--r-- | wsutil/file_util.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c index 7cdf216d1d..86d4b48dca 100644 --- a/wiretap/file_access.c +++ b/wiretap/file_access.c @@ -233,7 +233,7 @@ wtap* wtap_open_offline(const char *filename, int *err, char **err_info, /* First, make sure the file is valid */ if (use_stdin) { - if (fstat(0, &statb) < 0) { + if (ws_fstat64(0, &statb) < 0) { *err = errno; return NULL; } diff --git a/wsutil/file_util.h b/wsutil/file_util.h index d31746498f..d0cbf9ee11 100644 --- a/wsutil/file_util.h +++ b/wsutil/file_util.h @@ -51,7 +51,7 @@ extern "C" { extern int ws_stdio_open (const gchar *filename, int flags, int mode); extern int ws_stdio_rename (const gchar *oldfilename, const gchar *newfilename); extern int ws_stdio_mkdir (const gchar *filename, int mode); -extern int ws_stdio_stat (const gchar *filename, struct stat *buf); +extern int ws_stdio_stat64 (const gchar *filename, ws_statb64 *buf); extern int ws_stdio_unlink (const gchar *filename); extern int ws_stdio_remove (const gchar *filename); extern FILE * ws_stdio_fopen (const gchar *filename, const gchar *mode); |