aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-02-12 17:35:10 -0600
committerRob Landley <rob@landley.net>2008-02-12 17:35:10 -0600
commit0a521a217d7f1de33a56d75694ed7b8160f7874c (patch)
treed5f77a7d1fcf62932c9585a7fea54f442d28e8ee /toys
parent8dd51344c8276bfe8fc0430160336e7b5f5652e9 (diff)
downloadtoybox-0a521a217d7f1de33a56d75694ed7b8160f7874c.tar.gz
Fix up (admittedly stubby) mdev so it's actually hooked up to the build.
Diffstat (limited to 'toys')
-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");