]> git.pld-linux.org Git - packages/net-snmp.git/blob - net-snmp-lvalue.patch
- updated to 5.9 (new sonames)
[packages/net-snmp.git] / net-snmp-lvalue.patch
1 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
2 --- net-snmp-5.4.1.org/include/net-snmp/library/tools.h 2006-09-01 19:38:16.000000000 +0200
3 +++ net-snmp-5.4.1/include/net-snmp/library/tools.h     2007-11-03 11:11:37.466103816 +0100
4 @@ -50,11 +50,11 @@
5  
6  /** @def SNMP_FREE(s)
7      Frees a pointer only if it is !NULL and sets its value to NULL */
8 -#define SNMP_FREE(s)    do { if (s) { free((void *)s); s=NULL; } } while(0)
9 +#define SNMP_FREE(s)    do { if (s) { free(s); s=NULL; } } while(0)
10  
11  /** @def SNMP_SWIPE_MEM(n, s)
12      Frees pointer n only if it is !NULL, sets n to s and sets s to NULL */
13 -#define SNMP_SWIPE_MEM(n,s) do { if (n) free((void *)n); n = s; s=NULL; } while(0)
14 +#define SNMP_SWIPE_MEM(n,s) do { if (n) free(n); n = s; s=NULL; } while(0)
15  
16      /*
17       * XXX Not optimal everywhere. 
This page took 0.033305 seconds and 3 git commands to generate.