#9 compile BUG with gcc4.1.1

closed
nobody
None
5
2007-05-24
2006-09-06
Auke Kok
No

gcc-4.1.1 does not allow signed/unsigned type
mismatches by default, causing acpid compile to break:

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

to fix, make `int len` an `unsigned int len` and all
works well again.

Cheers,

Auke

Discussion

  • Stefan Seyfried

    Stefan Seyfried - 2006-10-18

    Logged In: YES
    user_id=332268

    even better is a "socklen_t len".
    I'll post a patch for this to the patches section.

     
  • Tim Hockin

    Tim Hockin - 2007-05-24

    Logged In: YES
    user_id=365227
    Originator: NO

    Fixed in CVS

     
  • Tim Hockin

    Tim Hockin - 2007-05-24
    • status: open --> closed
     

Log in to post a comment.