diff options
Diffstat (limited to 'network/wavemon/patches/wavemon-gcc4.patch')
-rw-r--r-- | network/wavemon/patches/wavemon-gcc4.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/network/wavemon/patches/wavemon-gcc4.patch b/network/wavemon/patches/wavemon-gcc4.patch new file mode 100644 index 0000000000..dd1b6ce413 --- /dev/null +++ b/network/wavemon/patches/wavemon-gcc4.patch @@ -0,0 +1,12 @@ +--- llist.c.orig 2008-06-12 02:41:16.000000000 -0400 ++++ llist.c 2008-06-12 02:42:31.000000000 -0400 +@@ -351,8 +351,7 @@ + case 'd': l->e = (void *)malloc(sizeof(int)); + *((int *)l->e) = va_arg(*ap, int); + break; +- case 's': l->e = (void *)malloc(sizeof(char *)); +- (char *)l->e = strdup(va_arg(*ap, char *)); ++ case 's': l->e = (void*)strdup(va_arg(*ap, char *)); + break; + case 'f': l->e = (void *)malloc(sizeof(double)); + *((double *)l->e) = va_arg(*ap, double); |