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/capture.c | |
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/capture.c')
-rw-r--r-- | ui/capture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/capture.c b/ui/capture.c index 18c3040edb..590c33a7b5 100644 --- a/ui/capture.c +++ b/ui/capture.c @@ -63,7 +63,7 @@ typedef struct if_stat_cache_item_s { struct if_stat_cache_s { int stat_fd; - intptr_t fork_child; + ws_process_id fork_child; GList *cache_list; /* List of if_stat_chache_entry_t */ }; @@ -645,7 +645,7 @@ capture_input_closed(capture_session *cap_session, gchar *msg) if_stat_cache_t * capture_stat_start(capture_options *capture_opts) { int stat_fd; - intptr_t fork_child; + ws_process_id fork_child; gchar *msg; if_stat_cache_t *sc = NULL; if_stat_cache_item_t *sc_item; |