diff options
author | Brian Cain <brian.cain@gmail.com> | 2015-05-06 15:35:33 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-05-06 15:35:33 -0400 |
commit | 6eb06def6f5e1a151f706d9752292e6b3d48b3b7 (patch) | |
tree | 0b697d221deb972f4c62f9b138d4f488fb3977d1 | |
parent | f21fe13ced630cdda64d6e7f11e7bec48e2854f9 (diff) | |
download | libseccomp-6eb06def6f5e1a151f706d9752292e6b3d48b3b7.tar.gz |
pfc: fix some warnings
Fixed a couple of warnings -- 'rc' was used-uninitialized IIRC and
missing enums from the switch.
Signed-off-by: Brian Cain <brian.cain@gmail.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
(imported from commit 67de487698778eeabadf28687ce5df3c795fb511)
-rw-r--r-- | src/gen_pfc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gen_pfc.c b/src/gen_pfc.c index 3484dab..4f2ee4f 100644 --- a/src/gen_pfc.c +++ b/src/gen_pfc.c @@ -177,6 +177,9 @@ static void _gen_pfc_chain(const struct arch_def *arch, case SCMP_CMP_MASKED_EQ: fprintf(fds, " & 0x%.8x == ", c_iter->mask); break; + case SCMP_CMP_NE: + case SCMP_CMP_LT: + case SCMP_CMP_LE: default: fprintf(fds, " ??? "); } @@ -247,7 +250,7 @@ static void _gen_pfc_syscall(const struct arch_def *arch, static int _gen_pfc_arch(const struct db_filter_col *col, const struct db_filter *db, FILE *fds) { - int rc; + int rc = 0; struct db_sys_list *s_iter; struct pfc_sys_list *p_iter = NULL, *p_new, *p_head = NULL, *p_prev; |