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 4531b5e29a76b3ed70c961ef941d01d1b1aa7ff4..ce12e92c82789fb287a562e74510df33009ce3a8 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 33a0605492a128f174b080b2b84b6206907fc81c..7a0cb478526baaf625e4a89ad531c81bce725940 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 {