diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-11-08 14:52:34 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-11-08 14:52:34 -0800 |
commit | b9a76e9551e3ad8edc9b463607dc8b0bd28cb73f (patch) | |
tree | 4ee19dab8dec5fcba7fd1b00b462fe7bd54d053c /tests/threadsignaltest.c | |
parent | f200ed9edc41c2be96519e3b5de4e4bd320d0b52 (diff) |
Hopefully this makes CreateThread() happy.
Diffstat (limited to 'tests/threadsignaltest.c')
-rw-r--r-- | tests/threadsignaltest.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/threadsignaltest.c b/tests/threadsignaltest.c index f64ff72f..04b8e213 100644 --- a/tests/threadsignaltest.c +++ b/tests/threadsignaltest.c @@ -35,7 +35,8 @@ The Regents of the University of California. All rights reserved.\n"; #include <windows.h> #define THREAD_HANDLE HANDLE - #define THREAD_FUNC_RETURN_TYPE int + #define THREAD_FUNC_ARG_TYPE LPVOID + #define THREAD_FUNC_RETURN_TYPE DWORD __stdcall #include "getopt.h" #else @@ -44,6 +45,7 @@ The Regents of the University of California. All rights reserved.\n"; #include <unistd.h> #define THREAD_HANDLE pthread_t + #define THREAD_FUNC_ARG_TYPE void * #define THREAD_FUNC_RETURN_TYPE void * #endif #include <errno.h> @@ -121,7 +123,7 @@ sleep_secs(int secs) } static THREAD_FUNC_RETURN_TYPE -capture_thread_func(void *arg) +capture_thread_func(THREAD_FUNC_ARG_TYPE arg) { char *device = arg; int packet_count; |