about summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/syslog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/syslog.c b/misc/syslog.c
index 205909e1cd..4c5b6f4bbc 100644
--- a/misc/syslog.c
+++ b/misc/syslog.c
@@ -178,7 +178,8 @@ vsyslog(pri, fmt, ap)
 
 	/* Prepare for multiple users.  We have to take care: open and
 	   write are cancelation points.  */
-	__libc_cleanup_region_start (cancel_handler, &oldaction_ptr);
+	__libc_cleanup_region_start ((void (*) (void *)) cancel_handler,
+				     &oldaction_ptr);
 	__libc_lock_lock (syslog_lock);
 
 	/* Prepare for a broken connection.  */