diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-06 21:19:56 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-06 21:19:56 +0200 |
commit | 93ee84ce079c472ef22403c86a3081324d6eef40 (patch) | |
tree | 1455977e82093a1e1a17b37836ff66586207bfe4 | |
parent | ffd0afe8a996f8716e5fa9b58bbd313d98007a2f (diff) |
fix signed/unsigned warning
-rw-r--r-- | extras/path_id/path_id.c | 2 | ||||
-rw-r--r-- | udev/lib/libudev-monitor.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extras/path_id/path_id.c b/extras/path_id/path_id.c index 4531b5e29a..ce12e92c82 100644 --- a/extras/path_id/path_id.c +++ b/extras/path_id/path_id.c @@ -28,7 +28,7 @@ #include <dirent.h> #include <getopt.h> -#include <libudev.h> +#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 33a0605492..7a0cb47852 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 { |