diff options
author | Jim Meyering <jim@meyering.net> | 2001-12-15 20:46:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-12-15 20:46:30 +0000 |
commit | 2fae9e5d26536fc61ad06a3d295c9bb8e40d215e (patch) | |
tree | 95b997f03d6570981ce5d104a4500b6ffd446768 /src/uptime.c | |
parent | 9be58099c4347a6bc27609b88b5f3ac8c1e054ac (diff) | |
download | coreutils-2fae9e5d26536fc61ad06a3d295c9bb8e40d215e.tar.xz |
Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
instead of hard-coding --help and --version descriptions.
Split --help output into smaller pieces.
Use fputs, not printf.
Diffstat (limited to 'src/uptime.c')
-rw-r--r-- | src/uptime.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/uptime.c b/src/uptime.c index bf59f1923..a5b3259cc 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -1,5 +1,5 @@ /* GNU's uptime. - Copyright (C) 1992-2000 Free Software Foundation, Inc. + Copyright (C) 1992-2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -178,9 +178,10 @@ the number of users on the system, and the average number of jobs\n\ in the run queue over the last 1, 5 and 15 minutes.\n\ If FILE is not specified, use %s. %s as FILE is common.\n\ \n\ - --help display this help and exit\n\ - --version output version information and exit\n"), +"), UTMP_FILE, WTMP_FILE); + fputs (HELP_OPTION_DESCRIPTION, stdout); + fputs (VERSION_OPTION_DESCRIPTION, stdout); puts (_("\nReport bugs to <bug-sh-utils@gnu.org>.")); } exit (status); |