From 88e2f2aad115f9dc59e336d3d176ab88161db9e3 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 22 Aug 2022 14:50:54 +0200 Subject: [PATCH] Cygwin: posix_timer: fix formatting Signed-off-by: Corinna Vinschen --- winsup/cygwin/posix_timer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/posix_timer.cc b/winsup/cygwin/posix_timer.cc index 69c758aa7..9d832f201 100644 --- a/winsup/cygwin/posix_timer.cc +++ b/winsup/cygwin/posix_timer.cc @@ -404,7 +404,7 @@ timer_tracker::settime (int flags, const itimerspec *new_value, leaking of timer ids into the child process. */ #define cnew(name, ...) \ ({ \ - void* ptr = (void*) HeapAlloc (GetProcessHeap (), 0, sizeof (name)); \ + void *ptr = (void *) HeapAlloc (GetProcessHeap (), 0, sizeof (name)); \ ptr ? new (ptr) name (__VA_ARGS__) : NULL; \ })