1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 20:25:38 +03:00

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

View File

@ -28,7 +28,7 @@
#include <dirent.h> #include <dirent.h>
#include <getopt.h> #include <getopt.h>
#include <libudev.h> #include <../../udev/lib/libudev.h>
#include <../../udev/udev.h> #include <../../udev/udev.h>
int debug; int debug;

View File

@ -544,7 +544,7 @@ retry:
return NULL; return NULL;
if (nlh->properties_off < sizeof(struct udev_monitor_netlink_header)) if (nlh->properties_off < sizeof(struct udev_monitor_netlink_header))
return NULL; return NULL;
if (nlh->properties_off+32U > buflen) if (nlh->properties_off+32 > buflen)
return NULL; return NULL;
bufpos = nlh->properties_off; bufpos = nlh->properties_off;
} else { } else {