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:
parent
ffd0afe8a9
commit
93ee84ce07
@ -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;
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user