chiark / gitweb /
[PATCH] fix dbg line in namedev.c
[elogind.git] / udev-add.c
index d9d7cab103098a35b14d95f384ade479399cb269..7d0bdadcb75fe3821bdfe1dff57f6a7fce6027db 100644 (file)
@@ -128,7 +128,7 @@ exit:
  * If it doesn't happen in about 10 seconds, give up.
  */
 #define SECONDS_TO_WAIT_FOR_DEV                10
-int sleep_for_dev(char *path)
+static int sleep_for_dev(char *path)
 {
        char filename[SYSFS_PATH_MAX + 6];
        struct stat buf;
@@ -150,6 +150,7 @@ int sleep_for_dev(char *path)
                /* sleep for a second or two to give the kernel a chance to
                 * create the dev file */
                sleep(1);
+               ++loop;
        }
        retval = -ENODEV;
 exit: