aboutsummaryrefslogtreecommitdiff
path: root/toys/df.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/df.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/df.c')
-rw-r--r--toys/df.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/toys/df.c b/toys/df.c
index ffff6ce4..52863cc7 100644
--- a/toys/df.c
+++ b/toys/df.c
@@ -55,7 +55,7 @@ static void show_mt(struct mtab_list *mt)
}
}
-int df_main(void)
+void df_main(void)
{
struct mtab_list *mt, *mt2, *mtlist;
@@ -114,6 +114,4 @@ int df_main(void)
}
if (CFG_TOYBOX_FREE) llist_free(mtlist, NULL);
-
- return 0;
}