Skip to contentSkip to conversation

buffer: include stdarg header

PATCH Applied Giuseppe Longo 2 participants 2 messages Nov 20, 2014 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buffer: include stdarg header

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);
^

---
 src/buffer.c | 1 +
 1 file changed, 1 insertion(+)
src/buffer.c +1 -0
index 4fac110..d64f944 100644
@@ -9,6 +9,7 @@
 
 #include <stdio.h>
 #include <stdint.h>
+#include <stdarg.h>
 #include <inttypes.h>
 #include <string.h>
 #include <buffer.h>
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 9 lines · Giuseppe Longo

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.