aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/mdev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/toys/mdev.c b/toys/mdev.c
index 385e52d2..dff2e5c2 100644
--- a/toys/mdev.c
+++ b/toys/mdev.c
@@ -7,6 +7,8 @@
*
* Not in SUSv3.
+USE_MDEV(NEWTOY(mdev, "s", TOYFLAG_USR|TOYFLAG_BIN))
+
config MDEV
bool "mdev"
default n
@@ -205,7 +207,7 @@ static void find_dev(char *path)
closedir(dir);
}
-void mdev_main(int argc, char *argv[])
+void mdev_main(void)
{
if (toys.optflags) {
strcpy(toybuf, "/sys/block");