diff options
author | Tom Hromatka <tom.hromatka@oracle.com> | 2021-11-01 12:32:56 -0600 |
---|---|---|
committer | Tom Hromatka <tom.hromatka@oracle.com> | 2021-11-01 12:32:56 -0600 |
commit | 7ac9ab8cb49943b3e09ce2345883a8f3258b72db (patch) | |
tree | 5b349bedf6932fc652fd74df0ba42d6829308082 | |
parent | 9ad5df95e03f3f0ed13b0b533bab17d7e086c319 (diff) | |
download | libseccomp-7ac9ab8cb49943b3e09ce2345883a8f3258b72db.tar.gz |
tests: Fix warning in 05-sim-long_jumps.c
Commit 3c2da115b5b35 "tests: improve 05-sim-long_jumps to work better
across arch/ABIs" introduced the following warning. Let's fix it.
05-sim-long_jumps.c: In function ‘main’:
05-sim-long_jumps.c:68:25: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
68 | free(syscall);
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit 092c686e1bc4a64d3f876349573ca66144fa3b73)
-rw-r--r-- | tests/05-sim-long_jumps.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/05-sim-long_jumps.c b/tests/05-sim-long_jumps.c index 24e5cf2..f8e9634 100644 --- a/tests/05-sim-long_jumps.c +++ b/tests/05-sim-long_jumps.c @@ -23,6 +23,7 @@ #include <errno.h> #include <unistd.h> #include <limits.h> +#include <stdlib.h> #include <seccomp.h> |