Package: acpid
Version: 1.0.4-1
Severity: normal
Tags: patch

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

cc -Wall -Werror -g -DVERSION="\"1.0.4\""   -c -o ud_socket.o ud_socket.c
cc1: warnings being treated as errors
ud_socket.c: In function 'ud_accept':
ud_socket.c:63: warning: pointer targets in passing argument 3 of 'accept' 
differ in signedness
ud_socket.c:74: warning: pointer targets in passing argument 5 of 'getsockopt' 
differ in signedness
make[1]: *** [ud_socket.o] Error 1
make[1]: Leaving directory `/acpid-1.0.4'
make: *** [build] Error 2

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/acpid-1.0.4/ud_socket.c ./ud_socket.c
--- ../tmp-orig/acpid-1.0.4/ud_socket.c 2003-11-17 22:24:58.000000000 +0100
+++ ./ud_socket.c       2005-06-20 14:14:06.000000000 +0200
@@ -58,7 +58,7 @@
        while (1) {
                int newsock = 0;
                struct sockaddr_un cliaddr;
-               int len = sizeof(struct sockaddr_un);
+               socklen_t len = sizeof(struct sockaddr_un);
 
                newsock = accept(listenfd, (struct sockaddr *)&cliaddr, &len);
                if (newsock < 0) {


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

Reply via email to