From 792d7e9b0ef778c33d7b1f58d85c17eb7da24a3c Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Tue, 26 Feb 2008 10:42:01 +0100 Subject: [PATCH] A bit of comment and whitespace cleanup in compat/mingw.c. Signed-off-by: Johannes Sixt --- compat/mingw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.c index 8bbe21bb67..0888288b5c 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -315,12 +315,14 @@ repeat: struct tm *gmtime_r(const time_t *timep, struct tm *result) { + /* gmtime() in MSVCRT.DLL is thread-safe, but not reentrant */ memcpy(result, gmtime(timep), sizeof(struct tm)); return result; } struct tm *localtime_r(const time_t *timep, struct tm *result) { + /* localtime() in MSVCRT.DLL is thread-safe, but not reentrant */ memcpy(result, localtime(timep), sizeof(struct tm)); return result; } @@ -778,7 +780,7 @@ char **env_setenv(char **env, const char *name) } /* this is the first function to call into WS_32; initialize it */ -#undef gethostbyname +#undef gethostbyname struct hostent *mingw_gethostbyname(const char *host) { WSADATA wsa; @@ -911,7 +913,7 @@ static sig_handler_t timer_fn = SIG_DFL; * wait state every now and then, namely exactly after timer's interval * length. At these opportunities it calls the signal handler. */ - + static __stdcall unsigned ticktack(void *dummy) { while (WaitForSingleObject(timer_event, timer_interval) == WAIT_TIMEOUT) {