dont use varargs for IP macro - sdhcp - simple dhcp client | |
git clone git://git.codemadness.org/sdhcp | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 5f693aa8b5aafaae588daf36fe1455ce6191882e | |
parent 112489c843d04ad8e67f831848f8e77b50df6a2c | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Fri, 25 Apr 2014 22:52:40 +0200 | |
dont use varargs for IP macro | |
Signed-off-by: Hiltjo Posthuma <[email protected]> | |
Diffstat: | |
M sdhcp.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
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) |