chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] introduce OPTIONS=ignore_device, ignore_remove, all_partitions" key
[elogind.git]
/
udev_db.c
diff --git
a/udev_db.c
b/udev_db.c
index 36da2647165dc0b925c09993aa3ebc1a7916a860..df7cfbb259955a021c5f289668d3e7b67a827667 100644
(file)
--- a/
udev_db.c
+++ b/
udev_db.c
@@
-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;
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;
if (strncmp(name, db_udev.name, NAME_SIZE) == 0) {
goto found;