Package: wavemon
Severity: normal
Tags: patch

When building 'wavemon' on amd64 with gcc-4.0,
I get the following error:

make[1]: Entering directory `/wavemon-0.4.0b'
cc -O2 -Wall   -c -o conf.o conf.c
cc -O2 -Wall   -c -o llist.o llist.c
llist.c: In function 'arg2element':
llist.c:355: error: invalid lvalue in assignment
make[1]: *** [llist.o] Error 1
make[1]: Leaving directory `/wavemon-0.4.0b'
make: *** [debian/stamp-makefile-build] Error 2

With the attached patch 'wavemon' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/wavemon-0.4.0b/llist.c ./llist.c
--- ../tmp-orig/wavemon-0.4.0b/llist.c  2002-12-21 14:39:33.000000000 +0000
+++ ./llist.c   2005-02-28 08:38:33.424036396 +0000
@@ -352,7 +352,7 @@
                                        *((int *)l->e) = va_arg(*ap, int);
                                        break;
                case 's':       l->e = (void *)malloc(sizeof(char *));
-                                       (char *)l->e = strdup(va_arg(*ap, char 
*));
+                                       l->e = strdup(va_arg(*ap, char *));
                                        break;
                case 'f':       l->e = (void *)malloc(sizeof(double));
                                        *((double *)l->e) = va_arg(*ap, double);


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to