From: Victor Julien Date: Wed, 11 Apr 2012 10:56:05 +0000 (+0200) Subject: Misc buffer API update. X-Git-Tag: suricata-1.3beta2~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2198417951ceb6f3aafe79d2843281f6d0aa5ac;p=thirdparty%2Fsuricata.git Misc buffer API update. --- diff --git a/src/util-buffer.c b/src/util-buffer.c index 903b58e6fc..675ba06678 100644 --- a/src/util-buffer.c +++ b/src/util-buffer.c @@ -33,8 +33,7 @@ MemBuffer *MemBufferCreateNew(uint32_t size) { if (size > MAX_LIMIT) { SCLogWarning(SC_ERR_MEM_BUFFER_API, "Mem buffer asked to create " - "buffer with size greater than API limit - %d\n", - MAX_LIMIT); + "buffer with size greater than API limit - %d", MAX_LIMIT); return NULL; } diff --git a/src/util-buffer.h b/src/util-buffer.h index 162a2a42c3..b53801473c 100644 --- a/src/util-buffer.h +++ b/src/util-buffer.h @@ -21,6 +21,9 @@ * \author Anoop Saldanha */ +#ifndef __UTIL_BUFFER_H__ +#define __UTIL_BUFFER_H__ + typedef struct MemBuffer_ { uint8_t *buffer; uint32_t size; @@ -154,3 +157,5 @@ void MemBufferFree(MemBuffer *buffer); } \ } \ } while (0) + +#endif /* __UTIL_BUFFER_H__ */