diff options
author | Paul Moore <paul@paul-moore.com> | 2017-02-27 15:56:40 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-02-27 16:06:50 -0500 |
commit | 4da17b0bd1d628040e90ab89dbfca8e41a5b8337 (patch) | |
tree | 820a41967f08aa0ea10d1ab822815974e7aae5ed | |
parent | f920b6f80eefeedbf262362470b0e15082d34e52 (diff) | |
download | libseccomp-4da17b0bd1d628040e90ab89dbfca8e41a5b8337.tar.gz |
build: fix arch-syscall-check for all supported architectures
Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r-- | src/arch-syscall-check.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch-syscall-check.c b/src/arch-syscall-check.c index 94ec526..87d7f5c 100644 --- a/src/arch-syscall-check.c +++ b/src/arch-syscall-check.c @@ -121,7 +121,7 @@ int main(int argc, char *argv[]) printf("OK\n"); /* next */ - if (x86_syscall_iterate(i_x86 + 1)) + if (x86_syscall_iterate(i_x86 + 1)->name) i_x86++; if (!x86_64_syscall_iterate(++i_x86_64)->name) i_x86_64 = -1; @@ -137,7 +137,7 @@ int main(int argc, char *argv[]) i_mips64 = -1; if (!mips64n32_syscall_iterate(++i_mips64n32)->name) i_mips64n32 = -1; - if (!ppc_syscall_iterate(++i_ppc)) + if (!ppc_syscall_iterate(++i_ppc)->name) i_ppc = -1; if (!ppc64_syscall_iterate(++i_ppc64)->name) i_ppc64 = -1; |