]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Correct coding style in decode-ethernet.c 758/head
authorKen Steele <ken@tilera.com>
Wed, 8 Jan 2014 17:16:00 +0000 (12:16 -0500)
committerVictor Julien <victor@inliniac.net>
Fri, 10 Jan 2014 14:34:59 +0000 (15:34 +0100)
This file is given as the example of correct coding style, so make sure it
follows the coding standard.

src/decode-ethernet.c

index ae7b3dc9f5c958d525ab64e2e879cad2e826d6a9..d10227c3ca37308796160afde8ab20444bdac17c 100644 (file)
@@ -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 */