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 /ui/ui_util.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 'ui/ui_util.h')
-rw-r--r-- | ui/ui_util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/ui_util.h b/ui/ui_util.h index 5eba626104..6f966361dc 100644 --- a/ui/ui_util.h +++ b/ui/ui_util.h @@ -27,6 +27,8 @@ #include <stdint.h> +#include <wsutil/process.h> + #include "epan/packet_info.h" #include "epan/column-utils.h" @@ -58,7 +60,7 @@ extern void main_window_quit(void); /* read from a pipe (callback) */ typedef gboolean (*pipe_input_cb_t) (gint source, gpointer user_data); /* install callback function, called if pipe input is available */ -extern void pipe_input_set_handler(gint source, gpointer user_data, intptr_t *child_process, pipe_input_cb_t input_cb); +extern void pipe_input_set_handler(gint source, gpointer user_data, ws_process_id *child_process, pipe_input_cb_t input_cb); /* packet_list.c */ |