[Pkg-acpi-devel] Bug#616194: Bug#616194: acpid: FTBFS (error: comparison between signed and unsigned integer expressions)

Michael Meskes meskes at debian.org
Thu Mar 3 11:19:23 UTC 2011


> How about this patch?

I prefer fixing the bug over working around it. Even makes the patch smaller:

--- acpid-2.0.8.orig/kacpimon/libnetlink.c
+++ acpid-2.0.8/kacpimon/libnetlink.c
@@ -518,7 +518,7 @@
 
 int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len)
 {
-	if ((int)NLMSG_ALIGN(n->nlmsg_len) + NLMSG_ALIGN(len) > maxlen) {
+	if ((int)NLMSG_ALIGN(n->nlmsg_len) + (int)NLMSG_ALIGN(len) > maxlen) {
 		fprintf(stderr, "addraw_l ERROR: message exceeded bound of %d\n",maxlen);
 		return -1;
 	}

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at googlemail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL





More information about the Pkg-acpi-devel mailing list