SOURCES: net-snmp-lvalue.patch (NEW) - no casting on possible lvalue
arekm
arekm at pld-linux.org
Sat Nov 3 11:18:08 CET 2007
Author: arekm Date: Sat Nov 3 10:18:08 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- no casting on possible lvalue
---- Files affected:
SOURCES:
net-snmp-lvalue.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/net-snmp-lvalue.patch
diff -u /dev/null SOURCES/net-snmp-lvalue.patch:1.1
--- /dev/null Sat Nov 3 11:18:08 2007
+++ SOURCES/net-snmp-lvalue.patch Sat Nov 3 11:18:03 2007
@@ -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.
================================================================
More information about the pld-cvs-commit
mailing list