aboutsummaryrefslogtreecommitdiffstats
path: root/rawshark.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2015-06-09 17:03:13 +0200
committerAnders Broman <a.broman58@gmail.com>2015-06-10 08:01:37 +0000
commit3f64384e364c4501f8d12fc39dca9545b7a23fa0 (patch)
treefa6bd73b5f429a4228a5355be103509f2421a345 /rawshark.c
parent6f675b56398a08f2dc674e29a34f872bce97a840 (diff)
[MSVC 2015] Use intptr_t to make MSVC happy.
Change-Id: I1a39495bc2a752070db8c62136b17d9567bc33ab Reviewed-on: https://code.wireshark.org/review/8856 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
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));