From dce389599eda23db61994a95fc0f71d367fd278e Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Sun, 8 Mar 2020 17:51:57 +0100 Subject: [PATCH] dthread: add parameter name to dthread_handler This fixes a build error in dthread_handler when compiling as C. Source/dthread.cpp:92:46: error: parameter name omitted unsigned int __stdcall dthread_handler(void *) ^ --- Source/dthread.cpp | 2 +- Source/dthread.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/dthread.cpp b/Source/dthread.cpp index 6e3e9a0b9..d1d49f570 100644 --- a/Source/dthread.cpp +++ b/Source/dthread.cpp @@ -86,7 +86,7 @@ void dthread_start() } } -unsigned int __stdcall dthread_handler(void *) +unsigned int __stdcall dthread_handler(void *data) { char *error_buf; TMegaPkt *pkt; diff --git a/Source/dthread.h b/Source/dthread.h index 7a9e86c96..f4dc99c6f 100644 --- a/Source/dthread.h +++ b/Source/dthread.h @@ -12,7 +12,7 @@ extern BOOLEAN dthread_running; void dthread_remove_player(int pnum); void dthread_send_delta(int pnum, char cmd, void *pbSrc, int dwLen); void dthread_start(); -unsigned int __stdcall dthread_handler(void *); +unsigned int __stdcall dthread_handler(void *data); void dthread_cleanup(); /* data */