#include <ctype.h>
#include <dirent.h>
#include <sys/wait.h>
+#include <sys/types.h>
+#include <unistd.h>
#include "logging.h"
}
}
-static int udev_scan(void)
+static void udev_scan(void)
{
char *devpath;
DIR *dir;
struct dirent *dent;
- int retval = -EINVAL;
devpath = "block";
dir = opendir(SYSBLOCK);
}
}
}
-
- if (retval > 0)
- retval = 0;
-
- return -retval;
}
{
init_logging("udevstart");
- return udev_scan();
+ udev_scan();
+
+ return 0;
}