chiark / gitweb /
fix signed/unsigned warning
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 6 Jun 2009 19:19:56 +0000 (21:19 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 6 Jun 2009 19:19:56 +0000 (21:19 +0200)
extras/path_id/path_id.c
udev/lib/libudev-monitor.c

index 4531b5e..ce12e92 100644 (file)
@@ -28,7 +28,7 @@
 #include <dirent.h>
 #include <getopt.h>
 
-#include <libudev.h>
+#include <../../udev/lib/libudev.h>
 #include <../../udev/udev.h>
 
 int debug;
index 33a0605..7a0cb47 100644 (file)
@@ -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 {