diff mbox

[libnftnl] buffer: include stdarg header

Message ID 1416485757-27046-1-git-send-email-giuseppelng@gmail.com
State Accepted
Delegated to: Pablo Neira
Headers show

Commit Message

Giuseppe Longo Nov. 20, 2014, 12:15 p.m. UTC
This fixes the following warnings:

buffer.c: In function 'nft_buf_put':
buffer.c:53:2: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration]
  va_start(ap, fmt);
  ^
buffer.c:56:2: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration]
  va_end(ap);
  ^

Signed-off-by: Giuseppe Longo <giuseppelng@gmail.com>
---
 src/buffer.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Pablo Neira Ayuso Nov. 20, 2014, 12:21 p.m. UTC | #1
On Thu, Nov 20, 2014 at 01:15:57PM +0100, Giuseppe Longo wrote:
> This fixes the following warnings:
> 
> buffer.c: In function 'nft_buf_put':
> buffer.c:53:2: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration]
>   va_start(ap, fmt);
>   ^
> buffer.c:56:2: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration]
>   va_end(ap);
>   ^

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/src/buffer.c b/src/buffer.c
index 4fac110..d64f944 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -9,6 +9,7 @@ 
 
 #include <stdio.h>
 #include <stdint.h>
+#include <stdarg.h>
 #include <inttypes.h>
 #include <string.h>
 #include <buffer.h>