]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Portability of alloc-lite
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 10 Mar 2010 12:05:14 +0000 (12:05 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 10 Mar 2010 12:05:14 +0000 (12:05 +0000)
git-svn-id: file:///svn/unbound/trunk@2018 be551aaa-1e26-0410-a405-d3ace91eadb9

smallapp/unbound-host.c
testcode/harvest.c

index 5b76f514319f69b7f89f3020853a0c0ef6439e68..88d0b8a1ea37006ff5fb7b70a154d708c405d0c5 100644 (file)
@@ -54,7 +54,7 @@
 #undef free
 #undef realloc
 #undef strdup
-char* unbound_lite_wrapstr(char* s) { return s; }
+#define unbound_lite_wrapstr(s) s
 #endif
 #include "libunbound/unbound.h"
 #include <ldns/ldns.h>
index 4f27dda6f9c87ad4d9f42d3444c71754210cd734..e84f255dcab7919ba7b91ab30766f2e7babd6caf 100644 (file)
@@ -80,7 +80,7 @@
 #undef realloc
 #undef free
 #undef strdup
-char* unbound_lite_wrapstr(char* s) { return s; }
+#define unbound_lite_wrapstr(s) s
 #endif
 struct todo_item;
 struct labdata;