fgets: avoid arithmetic overflow when n==INT_MIN is passed
[musl] / src / linux / klogctl.c
index 6c288af..8102ee6 100644 (file)
@@ -1,7 +1,7 @@
-#define SYSCALL_STANDALONE
+#include <sys/klog.h>
 #include "syscall.h"
 
 int klogctl (int type, char *buf, int len)
 {
-       return syscall3(__NR_syslog, type, (long)buf, len);
+       return syscall(SYS_syslog, type, buf, len);
 }