From: Kay Sievers Date: Sat, 6 Jun 2009 19:19:56 +0000 (+0200) Subject: fix signed/unsigned warning X-Git-Tag: 174~1008 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93ee84ce079c472ef22403c86a3081324d6eef40;p=systemd fix signed/unsigned warning --- diff --git a/extras/path_id/path_id.c b/extras/path_id/path_id.c index 4531b5e2..ce12e92c 100644 --- a/extras/path_id/path_id.c +++ b/extras/path_id/path_id.c @@ -28,7 +28,7 @@ #include #include -#include +#include <../../udev/lib/libudev.h> #include <../../udev/udev.h> int debug; diff --git a/udev/lib/libudev-monitor.c b/udev/lib/libudev-monitor.c index 33a06054..7a0cb478 100644 --- a/udev/lib/libudev-monitor.c +++ b/udev/lib/libudev-monitor.c @@ -544,7 +544,7 @@ retry: return NULL; if (nlh->properties_off < sizeof(struct udev_monitor_netlink_header)) return NULL; - if (nlh->properties_off+32U > buflen) + if (nlh->properties_off+32 > buflen) return NULL; bufpos = nlh->properties_off; } else {