dont use varargs for IP macro - sdhcp - simple dhcp client
(HTM) git clone git://git.codemadness.org/sdhcp
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 5f693aa8b5aafaae588daf36fe1455ce6191882e
(DIR) parent 112489c843d04ad8e67f831848f8e77b50df6a2c
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:52:40 +0200
dont use varargs for IP macro
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat:
M sdhcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/sdhcp.c b/sdhcp.c
@@ -96,7 +96,7 @@ static unsigned long t1;
static int dflag = 0;
-#define IP(...) (unsigned char[4]){__VA_ARGS__}
+#define IP(a,b,c,d) (unsigned char[4]){a,b,c,d}
static void
hnput(unsigned char *dst, unsigned long long src, size_t n)