Bug#287634: masqdialer: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment
Package: masqdialer
Severity: normal
Tags: patch
When building 'masqdialer' on amd64 with gcc-4.0,
I get the following error:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -c authgen.c
authgen.c: In function 'main':
authgen.c:78: error: invalid lvalue in assignment
make[3]: *** [authgen.o] Error 1
make[3]: Leaving directory `/masqdialer-0.5.5/authgen'
With the attached patch 'masqdialer' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/masqdialer-0.5.5/authgen/authgen.c ./authgen/authgen.c
--- ../tmp-orig/masqdialer-0.5.5/authgen/authgen.c 2004-12-29 09:51:39.758911144 +0100
+++ ./authgen/authgen.c 2004-12-29 09:51:29.226512312 +0100
@@ -75,7 +75,7 @@
salt[1] = 'a';
salt[2] = '\0';
- (char *) cryptpass = (char *) crypt(passwd, salt);
+ cryptpass = (char *) crypt(passwd, salt);
chomp (username);
chomp (cryptpass);
Reply to: