summaryrefslogtreecommitdiff
path: root/rawshark.c
diff options
context:
space:
mode:
Diffstat (limited to 'rawshark.c')
-rw-r--r--rawshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rawshark.c b/rawshark.c
index 52cc79f022..1561b8ac45 100644
--- a/rawshark.c
+++ b/rawshark.c
@@ -336,7 +336,7 @@ raw_pipe_open(const char *pipe_name)
}
}
- rfd = _open_osfhandle((long) hPipe, _O_RDONLY);
+ rfd = _open_osfhandle((intptr_t) hPipe, _O_RDONLY);
if (rfd == -1) {
fprintf(stderr, "rawshark: \"%s\" could not be opened: %s\n",
pipe_name, g_strerror(errno));