To fill in a ws_statb64, you must use ws_fstat64.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 10 Apr 2011 22:04:14 +0000 (22:04 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 10 Apr 2011 22:04:14 +0000 (22:04 +0000)
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

wiretap/file_access.c
wsutil/file_util.h

index 7cdf216d1da5c7d402fb651dd2222f73f623c692..86d4b48dca71349501c331afb235242de5bf3e12 100644 (file)
@@ -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;
                }
index d31746498f7f4f0a52cb187ae5f2a7222a60ec57..d0cbf9ee11ad4ac83165d02a54bc833123516c16 100644 (file)
@@ -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);