]> git.pld-linux.org Git - packages/net-snmp.git/commitdiff
- no casting on possible lvalue
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 3 Nov 2007 10:18:03 +0000 (10:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    net-snmp-lvalue.patch -> 1.1

net-snmp-lvalue.patch [new file with mode: 0644]

diff --git a/net-snmp-lvalue.patch b/net-snmp-lvalue.patch
new file mode 100644 (file)
index 0000000..0c58ec6
--- /dev/null
@@ -0,0 +1,17 @@
+diff -urN net-snmp-5.4.1.org/include/net-snmp/library/tools.h net-snmp-5.4.1/include/net-snmp/library/tools.h
+--- net-snmp-5.4.1.org/include/net-snmp/library/tools.h        2006-09-01 19:38:16.000000000 +0200
++++ net-snmp-5.4.1/include/net-snmp/library/tools.h    2007-11-03 11:11:37.466103816 +0100
+@@ -50,11 +50,11 @@
+ /** @def SNMP_FREE(s)
+     Frees a pointer only if it is !NULL and sets its value to NULL */
+-#define SNMP_FREE(s)    do { if (s) { free((void *)s); s=NULL; } } while(0)
++#define SNMP_FREE(s)    do { if (s) { free(s); s=NULL; } } while(0)
+ /** @def SNMP_SWIPE_MEM(n, s)
+     Frees pointer n only if it is !NULL, sets n to s and sets s to NULL */
+-#define SNMP_SWIPE_MEM(n,s) do { if (n) free((void *)n); n = s; s=NULL; } while(0)
++#define SNMP_SWIPE_MEM(n,s) do { if (n) free(n); n = s; s=NULL; } while(0)
+     /*
+      * XXX Not optimal everywhere. 
This page took 0.207094 seconds and 4 git commands to generate.