aboutsummaryrefslogtreecommitdiff
path: root/toys/mdev.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-11-29 18:14:37 -0600
committerRob Landley <rob@landley.net>2007-11-29 18:14:37 -0600
commitefda21ca931766eed6cfc49d1b2122c53827d9fc (patch)
tree16453d708a1b0fc6b325ada99bbe72cbaab7148b /toys/mdev.c
parent7634b55f27ad483ec634ba9defac93872e3a329f (diff)
downloadtoybox-efda21ca931766eed6cfc49d1b2122c53827d9fc.tar.gz
Change command main() functions to return void, and exit(toys.exitval) from
the toybox infrastructure instead. Eliminates a return call from each command.
Diffstat (limited to 'toys/mdev.c')
-rw-r--r--toys/mdev.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/toys/mdev.c b/toys/mdev.c
index a4ddb0b7..e979ca13 100644
--- a/toys/mdev.c
+++ b/toys/mdev.c
@@ -180,17 +180,15 @@ static void find_dev(char *path)
closedir(dir);
}
-int mdev_main(int argc, char *argv[])
+void mdev_main(int argc, char *argv[])
{
if (toys.optflags) {
strcpy(toybuf, "/sys/block");
find_dev(toybuf);
strcpy(toybuf, "/sys/class");
find_dev(toybuf);
- return 0;
+ return;
}
// hotplug support goes here
-
- return 0;
}