X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev_db.c;h=df7cfbb259955a021c5f289668d3e7b67a827667;hb=9d4791b66a7756421fc699be51a7be68a5aed329;hp=e07e72b85843e079dec58d0948083d47c5294672;hpb=7efa217db0db946e68e6274e2b9cbe0a973ec47a;p=elogind.git diff --git a/udev_db.c b/udev_db.c index e07e72b85..df7cfbb25 100644 --- a/udev_db.c +++ b/udev_db.c @@ -33,7 +33,7 @@ #include "libsysfs/sysfs/libsysfs.h" #include "udev.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "logging.h" #include "udev_db.h" @@ -195,7 +195,7 @@ int udev_db_get_device_byname(struct udevice *udev, const char *name) memset(&db_udev, 0x00, sizeof(struct udevice)); if (parse_db_file(&db_udev, filename) == 0) { char *pos; - int len; + unsigned int len; if (strncmp(name, db_udev.name, NAME_SIZE) == 0) { goto found;