Permalink
Browse files

Fix the build.

  • Loading branch information...
1 parent 24f2d94 commit 32fbc3ab7e3c36653c29c16f0ba08bd6682ab60b @kumpera kumpera committed Oct 24, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 support/syslog.c
View
@@ -31,21 +31,20 @@ Mono_Posix_Syscall_closelog (void)
return 0;
}
-int
-Mono_Posix_Syscall_syslog (int priority, const char* message)
-{
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-security"
#endif
-
+int
+Mono_Posix_Syscall_syslog (int priority, const char* message)
+{
syslog (priority, message);
+ return 0;
+}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
- return 0;
-}
/* vararg version of syslog(3). */
gint32

0 comments on commit 32fbc3a

Please sign in to comment.