Package: solid-pop3d
Severity: normal
Tags: patch
When building 'solid-pop3d' on amd64 with gcc-4.0,
I get the following error:
gcc -DHAVE_CONFIG_H -DDEFCONFIGFILENAME=\"/etc/spop3d.conf\"
-DBULLDIR=\"/var/lib/solid-pop3d/bulletins/\" -I. -I. -I.. -DDEBIAN -g -O2 -c
standalone.c
standalone.c: In function 'chld_handler':
standalone.c:79: error: invalid lvalue in assignment
standalone.c: In function 'main':
standalone.c:329: error: invalid lvalue in assignment
make[2]: *** [standalone.o] Error 1
make[2]: Leaving directory `/solid-pop3d-0.15/src'
With the attached patch 'solid-pop3d' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/solid-pop3d-0.15/src/standalone.c ./src/standalone.c
--- ../tmp-orig/solid-pop3d-0.15/src/standalone.c 2000-04-30
22:56:21.000000000 +0200
+++ ./src/standalone.c 2005-01-14 10:12:50.998991917 +0100
@@ -73,7 +73,7 @@
while ((spid = waitpid(0, NULL, WNOHANG)) > 0)
for (tmp = 0; tmp < MAX_SESSIONS; tmp++)
if (sessions[tmp].pid == spid) {
- (volatile pid_t) sessions[tmp].pid = 0;
+ sessions[tmp].pid = 0;
break;
};
}
@@ -308,7 +308,7 @@
#else
sessions[freeentry].addr = address.sin_addr;
#endif
- (volatile pid_t) sessions[freeentry].pid = spid;
+ sessions[freeentry].pid = spid;
sessions[freeentry].start = now;
sessions[freeentry].log = 0;
};
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]