[Bug 431881] New: dhcpv6-1.0.11-3: 14 * ordered comparison of pointer with integer zero
https://bugzilla.novell.com/show_bug.cgi?id=431881 Summary: dhcpv6-1.0.11-3: 14 * ordered comparison of pointer with integer zero Product: openSUSE 11.1 Version: Factory Platform: All OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just tried to compile Suse Linux package dhcpv6-1.0.11-3 and the compiler said dhcp6c.c:405: warning: ordered comparison of pointer with integer zero The source code is if (inet_ntop(AF_INET6, &lladdr, linklocal, sizeof(linklocal)) < 0) { return -1; } Suggest replace code with if (inet_ntop(AF_INET6, &lladdr, linklocal, sizeof(linklocal)) == 0) { return -1; } Similar fun & games in the same package with dhcp6c.c:613: warning: ordered comparison of pointer with integer zero dhcp6c.c:617: warning: ordered comparison of pointer with integer zero dhcp6c.c:1645: warning: ordered comparison of pointer with integer zero dhcp6c.c:1739: warning: ordered comparison of pointer with integer zero relay6_database.c:340: warning: ordered comparison of pointer with integer zero relay6_database.c:352: warning: ordered comparison of pointer with integer zero relay6_socket.c:102: warning: ordered comparison of pointer with integer zero relay6_socket.c:313: warning: ordered comparison of pointer with integer zero dhcp6c.c:405: warning: ordered comparison of pointer with integer zero dhcp6c.c:613: warning: ordered comparison of pointer with integer zero dhcp6c.c:617: warning: ordered comparison of pointer with integer zero dhcp6c.c:1645: warning: ordered comparison of pointer with integer zero dhcp6c.c:1739: warning: ordered comparison of pointer with integer zero -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=431881
Christoph Thiel
https://bugzilla.novell.com/show_bug.cgi?id=431881
User kkeil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=431881#c1
Karsten Keil
participants (1)
-
bugzilla_noreply@novell.com