From: Eric Leblond Date: Tue, 19 Nov 2013 10:26:54 +0000 (+0100) Subject: util-ioctl: minor code cleaning. X-Git-Tag: suricata-2.0beta2~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=008ed41cb4d2e278305a008a9074e2438124ab1c;p=thirdparty%2Fsuricata.git util-ioctl: minor code cleaning. Fix author e-mail and simplify an indentation. --- diff --git a/src/util-ioctl.c b/src/util-ioctl.c index ef5824a3b5..ca600d4608 100644 --- a/src/util-ioctl.c +++ b/src/util-ioctl.c @@ -18,7 +18,7 @@ /** * \file * - * \author Eric Leblond + * \author Eric Leblond */ #include "suricata-common.h" @@ -51,12 +51,10 @@ int GetIfaceMaxHWHeaderLength(char *pcap_dev) || (!strcmp("tap", pcap_dev)) || - (!strcmp("lo", pcap_dev)) - ) + (!strcmp("lo", pcap_dev))) return ETHERNET_HEADER_LEN; - if ( - (!strcmp("ppp", pcap_dev)) - ) + + if (!strcmp("ppp", pcap_dev)) return SLL_HEADER_LEN; /* SLL_HEADER_LEN is the biggest one */ return SLL_HEADER_LEN;