diff toys/mdev.c @ 254:bf3f98a58ee2

Fix up (admittedly stubby) mdev so it's actually hooked up to the build.
author Rob Landley <rob@landley.net>
date Tue, 12 Feb 2008 17:35:10 -0600
parents d4176f3f3835
children 951110c37fee
line wrap: on
line diff
--- a/toys/mdev.c	Wed Jan 30 17:05:37 2008 -0600
+++ b/toys/mdev.c	Tue Feb 12 17:35:10 2008 -0600
@@ -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 @@
 	closedir(dir);
 }
 
-void mdev_main(int argc, char *argv[])
+void mdev_main(void)
 {
 	if (toys.optflags) {
 		strcpy(toybuf, "/sys/block");