summaryrefslogtreecommitdiff
path: root/tcpdump.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-11-13 00:17:33 -0800
committerGuy Harris <guy@alum.mit.edu>2017-11-13 00:17:33 -0800
commit8f2cde6936738fc564e47785a9b83a548affa2ad (patch)
treeed81d1b115a6e5ec2916be5ee7218bc7d241a731 /tcpdump.c
parent568927a2bce300035cf25e9cd387986f4a72b10c (diff)
downloadtcpdump-8f2cde6936738fc564e47785a9b83a548affa2ad.tar.gz
Fix CreateTimerQueueTimer(). It's INVALID_HANDLE_VALUE, not INVALID_HANDLE.
Diffstat (limited to 'tcpdump.c')
-rw-r--r--tcpdump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tcpdump.c b/tcpdump.c
index fe9864f5..70c9fb37 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -227,7 +227,7 @@ void requestinfo(int);
#endif
#ifdef _WIN32
- static HANDLE timer_handle = INVALID_HANDLE;
+ static HANDLE timer_handle = INVALID_HANDLE_VALUE;
static void CALLBACK verbose_stats_dump(PVOID param, BOOLEAN timer_fired);
#else /* _WIN32 */
static void verbose_stats_dump(int sig);
@@ -2214,7 +2214,7 @@ DIAG_ON_CLANG(assign-enum)
* that printing the stats could be a "long wait".
*/
CreateTimerQueueTimer(&timer_handle, NULL,
- verbose_stats_dump, NULL, 1000, 1000
+ verbose_stats_dump, NULL, 1000, 1000,
WT_EXECUTEDEFAULT|WT_EXECUTELONGFUNCTION);
setvbuf(stderr, NULL, _IONBF, 0);
#else /* _WIN32 */
@@ -2414,10 +2414,10 @@ static void
cleanup(int signo _U_)
{
#ifdef _WIN32
- if (timer_handle != INVALID_HANDLE) {
+ if (timer_handle != INVALID_HANDLE_VALUE) {
DeleteTimerQueueTimer(NULL, timer_handle, NULL);
CloseHandle(timer_handle);
- timer_handle = INVALID_HANDLE;
+ timer_handle = INVALID_HANDLE_VALUE;
}
#else /* _WIN32 */
struct itimerval timer;