aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-03-20 12:41:22 -0500
committerRob Landley <rob@landley.net>2017-03-20 12:41:22 -0500
commitcb8e5ad6c5b9c79cce1a6baf10041f90cf491711 (patch)
tree7d22e62919b40e845380b32486e8a61991329715 /toys/other
parent2ba9c414e02197075e7e90ca077dda19fae75cda (diff)
downloadtoybox-cb8e5ad6c5b9c79cce1a6baf10041f90cf491711.tar.gz
Add TOYBOX_PEDANTIC_ARGS to check arguments when there are no arguments,
and make uptime use it.
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/uptime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/uptime.c b/toys/other/uptime.c
index 91887dfb..1acb39ef 100644
--- a/toys/other/uptime.c
+++ b/toys/other/uptime.c
@@ -5,7 +5,7 @@
* Copyright 2013 Jeroen van Rijn <jvrnix@gmail.com>
-USE_UPTIME(NEWTOY(uptime, NULL, TOYFLAG_USR|TOYFLAG_BIN))
+USE_UPTIME(NEWTOY(uptime, NO_ARGS, TOYFLAG_USR|TOYFLAG_BIN))
config UPTIME
bool "uptime"