Make linux_syscall_support.h compilable with -Wstrict-prototypes
Ensure that some functions are defined as taking no arguments rather
than (in C) taking unspecified arguments. This prevents GCC from
giving errors when compiling with "-Wstrict-prototypes -Werror".
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3114
TEST=run "gcc -Wstrict-prototypes lss/linux_syscall_support.h"
Review URL: https://codereview.chromium.org/11301032
git-svn-id: http://linux-syscall-support.googlecode.com/svn/trunk/lss@17 829466d3-f3f5-3ae4-62ad-de35cf9bba21
diff --git a/linux_syscall_support.h b/linux_syscall_support.h
index f1aad3a..fbeaf67 100644
--- a/linux_syscall_support.h
+++ b/linux_syscall_support.h
@@ -1800,7 +1800,7 @@
LSS_RETURN(type, __res)
#undef _syscall0
#define _syscall0(type,name) \
- type LSS_NAME(name)() { \
+ type LSS_NAME(name)(void) { \
LSS_BODY(type, name); \
}
#undef _syscall1
@@ -1969,7 +1969,7 @@
LSS_RETURN(type, __res)
#undef _syscall0
#define _syscall0(type, name) \
- type LSS_NAME(name)() { \
+ type LSS_NAME(name)(void) { \
LSS_BODY(type, name); \
}
#undef _syscall1
@@ -2095,7 +2095,7 @@
LSS_RETURN(type, __res)
#undef _syscall0
#define _syscall0(type, name) \
- type LSS_NAME(name)() { \
+ type LSS_NAME(name)(void) { \
LSS_BODY(type, name); \
}
#undef _syscall1
@@ -2245,7 +2245,7 @@
LSS_RETURN(type, __v0, __r7)
#undef _syscall0
#define _syscall0(type, name) \
- type LSS_NAME(name)() { \
+ type LSS_NAME(name)(void) { \
register unsigned long __r7 __asm__("$7"); \
LSS_BODY(type, name, "=r"); \
}
@@ -3396,7 +3396,7 @@
return LSS_NAME(execve)(path, argv, (const char *const *)environ);
}
- LSS_INLINE pid_t LSS_NAME(gettid)() {
+ LSS_INLINE pid_t LSS_NAME(gettid)(void) {
pid_t tid = LSS_NAME(_gettid)();
if (tid != -1) {
return tid;
@@ -3443,7 +3443,7 @@
return LSS_NAME(kill)(LSS_NAME(getpid)(), sig);
}
- LSS_INLINE int LSS_NAME(setpgrp)() {
+ LSS_INLINE int LSS_NAME(setpgrp)(void) {
return LSS_NAME(setpgid)(0, 0);
}