Squelch some type-clash warnings on Windows.
authorGuy Harris <guy@alum.mit.edu>
Wed, 10 Jun 2015 03:09:40 +0000 (20:09 -0700)
committerGuy Harris <guy@alum.mit.edu>
Wed, 10 Jun 2015 03:10:24 +0000 (03:10 +0000)
commit62c3bc3596e2ba9fa04f80bc7b49fe82802ce841
tree08a059a5945cb0b803888c1a416e7d1bbf2fd8e8
parenta10a41f5c7816617aa6aa413c46c8eba625cccff
Squelch some type-clash warnings on Windows.

Define WS_INVALID_PID to be the appropriate "there is no process" value.
On UN*X, -1 works; the "pid" is actually a HANDLE for the process on
Windows, so INVALID_HANDLE is appropriate.

Cast HANDLE to intptr_t in the _cwait() call.

Change-Id: Ica2d2319f5c95ba41f590776a745fe040fe494d2
Reviewed-on: https://code.wireshark.org/review/8871
Reviewed-by: Guy Harris <guy@alum.mit.edu>
capchild/capture_sync.c
wsutil/processes.h