diff options
author | Ruediger Meier | 2017-06-20 20:20:29 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-06-26 14:38:24 +0200 |
commit | 86be6a32d3fd229dbb17bf5e3348a01e6e6e855a (patch) | |
tree | 04f05fd94b26d2b5a6304d69e93f2ec59e789e17 /login-utils/last.c | |
parent | misc: cosmetics, remove argument from usage(int) (diff) | |
download | kernel-qcow2-util-linux-86be6a32d3fd229dbb17bf5e3348a01e6e6e855a.tar.gz kernel-qcow2-util-linux-86be6a32d3fd229dbb17bf5e3348a01e6e6e855a.tar.xz kernel-qcow2-util-linux-86be6a32d3fd229dbb17bf5e3348a01e6e6e855a.zip |
misc: cosmetics, remove argument from usage(FILE*)
This patch is trivial and changes nothing, because
we were always using usage(stdout)
Now all our usage() functions look very similar. If wanted we
could auto-generate another big cosmetical patch to remove all
the useless "FILE *out" constants and use printf and puts
rather than their f* friends. Such patch could be automatically
synchronized with the translation project (newlines!) to not
make the translators sick.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'login-utils/last.c')
-rw-r--r-- | login-utils/last.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/login-utils/last.c b/login-utils/last.c index 50451b2e2..9cf6eb377 100644 --- a/login-utils/last.c +++ b/login-utils/last.c @@ -560,8 +560,9 @@ static int list(const struct last_control *ctl, struct utmpx *p, time_t logout_t } -static void __attribute__((__noreturn__)) usage(const struct last_control *ctl, FILE *out) +static void __attribute__((__noreturn__)) usage(const struct last_control *ctl) { + FILE *out = stdout; fputs(USAGE_HEADER, out); fprintf(out, _( " %s [options] [<username>...] [<tty>...]\n"), program_invocation_short_name); @@ -953,7 +954,7 @@ int main(int argc, char **argv) switch(c) { case 'h': - usage(&ctl, stdout); + usage(&ctl); break; case 'V': printf(UTIL_LINUX_VERSION); |