summaryrefslogtreecommitdiff
path: root/udev_rules.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_rules.c')
-rw-r--r--udev_rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_rules.c b/udev_rules.c
index 3cbcad55c1..41a7291d79 100644
--- a/udev_rules.c
+++ b/udev_rules.c
@@ -279,7 +279,7 @@ static int find_free_number(const char *name, const char *devpath)
strlcpy(filename, name, sizeof(filename));
while (1) {
dbg("look for existing node '%s'", filename);
- if (udev_db_search_name(filename, db_devpath, sizeof(db_devpath)) != 0) {
+ if (udev_db_lookup_name(filename, db_devpath, sizeof(db_devpath)) != 0) {
dbg("free num=%d", num);
break;
}