From 93ee84ce079c472ef22403c86a3081324d6eef40 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sat, 6 Jun 2009 21:19:56 +0200 Subject: [PATCH] fix signed/unsigned warning --- extras/path_id/path_id.c | 2 +- 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 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 { -- 2.39.5