From 6eb06def6f5e1a151f706d9752292e6b3d48b3b7 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Wed, 6 May 2015 15:35:33 -0400 Subject: 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 Signed-off-by: Paul Moore (imported from commit 67de487698778eeabadf28687ce5df3c795fb511) --- src/gen_pfc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1