From: Thomas Jarosch Date: Mon, 3 Oct 2011 05:22:56 +0000 (+0000) Subject: Fix wrong comparison in cmp_print_eopt() X-Git-Tag: v3.0.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d5ee98a7c47644308ccb167faa93e07bb702fd8;p=thirdparty%2Fiproute2.git Fix wrong comparison in cmp_print_eopt() Detected by cppcheck. Signed-off-by: Thomas Jarosch --- diff --git a/tc/em_cmp.c b/tc/em_cmp.c index 6addce072..3e6d00e5d 100644 --- a/tc/em_cmp.c +++ b/tc/em_cmp.c @@ -155,7 +155,7 @@ static int cmp_print_eopt(FILE *fd, struct tcf_ematch_hdr *hdr, void *data, fprintf(fd, "u8 "); else if (cmp->align == TCF_EM_ALIGN_U16) fprintf(fd, "u16 "); - else if (cmp->align == TCF_EM_ALIGN_U16) + else if (cmp->align == TCF_EM_ALIGN_U32) fprintf(fd, "u32 "); fprintf(fd, "at %d layer %d ", cmp->off, cmp->layer);