fix signed/unsigned warning

This commit is contained in:
Kay Sievers
2009-06-06 21:19:56 +02:00
parent ffd0afe8a9
commit 93ee84ce07
2 changed files with 2 additions and 2 deletions
+1 -1
View 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;
+1 -1
View 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 {