summaryrefslogtreecommitdiff
path: root/src/core/syscall-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/syscall-list.c')
-rw-r--r--src/core/syscall-list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/syscall-list.c b/src/core/syscall-list.c
index 05fad3e158..35216b2a88 100644
--- a/src/core/syscall-list.c
+++ b/src/core/syscall-list.c
@@ -26,12 +26,14 @@
#include "syscall-list.h"
-const struct syscall_name *lookup_syscall(register const char *str, register unsigned int len);
+static const struct syscall_name* lookup_syscall(register const char *str,
+ register unsigned int len);
#include "syscall-to-name.h"
#include "syscall-from-name.h"
const char *syscall_to_name(int id) {
+ id = SYSCALL_TO_INDEX(id);
if (id < 0 || id >= (int) ELEMENTSOF(syscall_names))
return NULL;