aboutsummaryrefslogtreecommitdiff
path: root/uptime.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-19 18:01:00 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-19 18:01:00 +0000
commit907f27ed9828725156e1ead722d001594dd621d9 (patch)
treed728fbd078450989fefcce5d372db867899e3056 /uptime.c
parent5fce651cc485c6377763a5c0a5cbb5173d1b3d67 (diff)
downloadbusybox-w32-907f27ed9828725156e1ead722d001594dd621d9.tar.gz
busybox-w32-907f27ed9828725156e1ead722d001594dd621d9.tar.bz2
busybox-w32-907f27ed9828725156e1ead722d001594dd621d9.zip
Add usage messages for applets without them.
git-svn-id: svn://busybox.net/trunk/busybox@881 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'uptime.c')
-rw-r--r--uptime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/uptime.c b/uptime.c
index efdbccf00..6a8bfa638 100644
--- a/uptime.c
+++ b/uptime.c
@@ -46,6 +46,9 @@ extern int uptime_main(int argc, char **argv)
46 struct tm *current_time; 46 struct tm *current_time;
47 time_t current_secs; 47 time_t current_secs;
48 48
49 if (argc > 1 && strcmp(argv[1], "--help") == 0)
50 usage(uptime_usage);
51
49 time(&current_secs); 52 time(&current_secs);
50 current_time = localtime(&current_secs); 53 current_time = localtime(&current_secs);
51 54