diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-06-09 17:30:15 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-06-10 00:30:57 +0000 |
commit | 2e76bb466a82110ca80d5d6d982842cf2f9cc964 (patch) | |
tree | 25e32f1b8f1dc338d06aa090270827ceca8789ac /capchild/capture_sync.h | |
parent | 3944e5563365cdd51a3a6ca3d55cff88d3bd4a25 (diff) |
Use pid_t on UN*X, and HANDLE on Windows, for the process ID.
This avoids type punning; at least with Xcode 7 beta on El Capitan beta,
that produces warnings that get turned into errors.
Change-Id: I57f47455b9630f359828c07c92a190b5cb33816f
Reviewed-on: https://code.wireshark.org/review/8862
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'capchild/capture_sync.h')
-rw-r--r-- | capchild/capture_sync.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/capchild/capture_sync.h b/capchild/capture_sync.h index c56656bc09..485a41f9f2 100644 --- a/capchild/capture_sync.h +++ b/capchild/capture_sync.h @@ -54,7 +54,7 @@ sync_pipe_stop(capture_session *cap_session); /** User wants to stop the program, just kill the child as soon as possible */ extern void -sync_pipe_kill(intptr_t fork_child); +sync_pipe_kill(ws_process_id fork_child); /** Set wireless channel using dumpcap */ extern int @@ -75,11 +75,11 @@ sync_if_capabilities_open(const gchar *ifname, gboolean monitor_mode, /** Start getting interface statistics using dumpcap. */ extern int -sync_interface_stats_open(int *read_fd, intptr_t *fork_child, gchar **msg, void (*update_cb)(void)); +sync_interface_stats_open(int *read_fd, ws_process_id *fork_child, gchar **msg, void (*update_cb)(void)); /** Stop gathering statistics. */ extern int -sync_interface_stats_close(int *read_fd, intptr_t *fork_child, gchar **msg); +sync_interface_stats_close(int *read_fd, ws_process_id *fork_child, gchar **msg); /** Read a line from a pipe, similar to fgets. Non-blocking. */ extern int |