From: Victor Julien Date: Fri, 1 Aug 2014 07:54:34 +0000 (+0200) Subject: packet pool: cosmetic cleanups X-Git-Tag: suricata-2.1beta1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a441441636b36975a279aa99bbabe59b691c026b;p=thirdparty%2Fsuricata.git packet pool: cosmetic cleanups --- diff --git a/src/tmqh-packetpool.c b/src/tmqh-packetpool.c index 0729d270c6..4d4f215ac4 100644 --- a/src/tmqh-packetpool.c +++ b/src/tmqh-packetpool.c @@ -69,7 +69,7 @@ static void PktPoolThreadDestroy(void * buf) free(buf); } -static void TmqhPacketpoolInit(void) +static void TmqhPacketPoolInit(void) { SCMutexLock(&pkt_pool_thread_key_mutex); if (pkt_pool_thread_key_initialized) { @@ -93,7 +93,7 @@ static void TmqhPacketpoolInit(void) static PktPool *ThreadPacketPoolCreate(void) { - TmqhPacketpoolInit(); + TmqhPacketPoolInit(); /* Create a new pool for this thread. */ PktPool* pool = (PktPool*)SCMallocAligned(sizeof(PktPool), CLS); @@ -114,8 +114,8 @@ static inline PktPool *GetThreadPacketPool(void) { PktPool* pool = (PktPool*)pthread_getspecific(pkt_pool_thread_key); if (pool == NULL) - pool = ThreadPacketPoolCreate(); - + pool = ThreadPacketPoolCreate(); + return pool; } #endif