From 3a9a14711a476138e3097d8d9bc8e93335a3cd9b Mon Sep 17 00:00:00 2001 From: Ken Steele Date: Wed, 8 Jan 2014 12:16:00 -0500 Subject: [PATCH] Correct coding style in decode-ethernet.c This file is given as the example of correct coding style, so make sure it follows the coding standard. --- src/decode-ethernet.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/decode-ethernet.c b/src/decode-ethernet.c index ae7b3dc9f5..d10227c3ca 100644 --- a/src/decode-ethernet.c +++ b/src/decode-ethernet.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2010 Open Information Security Foundation +/* Copyright (C) 2007-2014 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free @@ -38,7 +38,8 @@ #include "util-unittest.h" #include "util-debug.h" -int DecodeEthernet(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, uint8_t *pkt, uint16_t len, PacketQueue *pq) +int DecodeEthernet(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, + uint8_t *pkt, uint16_t len, PacketQueue *pq) { SCPerfCounterIncr(dtv->counter_eth, tv->sc_perf_pca); @@ -91,8 +92,8 @@ int DecodeEthernet(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, uint8_t *pk * \brief Valid Ethernet packet * \retval 0 Expected test value */ -static int DecodeEthernetTest01 (void) { - +static int DecodeEthernetTest01 (void) +{ /* ICMP packet wrapped in PPPOE */ uint8_t raw_eth[] = { 0x00, 0x10, 0x94, 0x55, 0x00, 0x01, 0x00, 0x10, @@ -134,7 +135,8 @@ static int DecodeEthernetTest01 (void) { * \brief Registers Ethernet unit tests * \todo More Ethernet tests */ -void DecodeEthernetRegisterTests(void) { +void DecodeEthernetRegisterTests(void) +{ #ifdef UNITTESTS UtRegisterTest("DecodeEthernetTest01", DecodeEthernetTest01, 0); #endif /* UNITTESTS */