chiark / gitweb /
[PATCH] trivial rename of some variables
[elogind.git] / namedev.c
index 0463d4df0b6625dc03b4570eae8c1e71fbe96070..f0a5c34f79a777659706aa9f1c3e37781b8b1c64 100644 (file)
--- a/namedev.c
+++ b/namedev.c
@@ -152,7 +152,7 @@ static int find_free_number(struct udevice *udev, const char *name)
        while (1) {
                dbg("look for existing node '%s'", filename);
                memset(&db_udev, 0x00, sizeof(struct udevice));
-               if (udev_db_get_device_byname(&db_udev, filename) != 0) {
+               if (udev_db_get_device_by_name(&db_udev, filename) != 0) {
                        dbg("free num=%d", num);
                        return num;
                }
@@ -201,7 +201,6 @@ static void apply_format(struct udevice *udev, char *string, size_t maxsize,
                dbg("format=%c, string='%s', tail='%s'",c , string, tail);
                attr = get_format_attribute(&tail);
 
-
                switch (c) {
                case 'p':
                        if (strlen(udev->devpath) == 0)