aboutsummaryrefslogtreecommitdiffstats
path: root/rawshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-04-10 20:59:10 +0000
committerGuy Harris <guy@alum.mit.edu>2011-04-10 20:59:10 +0000
commit4fdcc5c18044f7af0e4d892819e202090199bc4b (patch)
treed13512b25cf373d606ea059eae4f836085f3a99e /rawshark.c
parentf2008e4dd388076f50caa024d1900afa2116b7b9 (diff)
Rename ws_stat to ws_stat64, and make it take a pointer to a ws_statb64
as an argument, along the lines of ws_fstat64, and, on Windows, make it use _wstati64, to handle 64-bit file sizes. svn path=/trunk/; revision=36547
Diffstat (limited to 'rawshark.c')
-rw-r--r--rawshark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rawshark.c b/rawshark.c
index 27d4d7639d..d1e08b98cf 100644
--- a/rawshark.c
+++ b/rawshark.c
@@ -247,7 +247,7 @@ static int
raw_pipe_open(const char *pipe_name)
{
#ifndef _WIN32
- struct stat pipe_stat;
+ ws_statb64 pipe_stat;
#else
char *pncopy, *pos;
DWORD err;
@@ -272,7 +272,7 @@ raw_pipe_open(const char *pipe_name)
#endif /* _WIN32 */
} else {
#ifndef _WIN32
- if (ws_stat(pipe_name, &pipe_stat) < 0) {
+ if (ws_stat64(pipe_name, &pipe_stat) < 0) {
fprintf(stderr, "rawshark: The pipe %s could not be checked: %s\n",
pipe_name, strerror(errno));
return -1;