summaryrefslogtreecommitdiffstats
path: root/login-utils/chfn.c
diff options
context:
space:
mode:
authorSami Kerola2014-09-28 21:51:41 +0200
committerKarel Zak2014-10-01 12:33:26 +0200
commitdb433bf737a5fd4e1c7cca5e3603934743eebd1c (patch)
treede811b6d372bf7cba52535d2d1de770541499b34 /login-utils/chfn.c
parenttextual: use manual tail usage() macro (diff)
downloadkernel-qcow2-util-linux-db433bf737a5fd4e1c7cca5e3603934743eebd1c.tar.gz
kernel-qcow2-util-linux-db433bf737a5fd4e1c7cca5e3603934743eebd1c.tar.xz
kernel-qcow2-util-linux-db433bf737a5fd4e1c7cca5e3603934743eebd1c.zip
textual: use usage() text element macros
Translating these text elements should happen only once, which is more likely when the text macros are used properly. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'login-utils/chfn.c')
-rw-r--r--login-utils/chfn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/login-utils/chfn.c b/login-utils/chfn.c
index ca10fbfdb..25f7e91e3 100644
--- a/login-utils/chfn.c
+++ b/login-utils/chfn.c
@@ -87,8 +87,8 @@ static void __attribute__((__noreturn__)) usage(FILE *fp)
fputs(_(" -p, --office-phone <phone> office phone number\n"), fp);
fputs(_(" -h, --home-phone <phone> home phone number\n"), fp);
fputs(USAGE_SEPARATOR, fp);
- fputs(_(" -u, --help display this help and exit\n"), fp);
- fputs(_(" -v, --version output version information and exit\n"), fp);
+ fputs(USAGE_HELP, fp);
+ fputs(USAGE_VERSION, fp);
fprintf(fp, USAGE_MAN_TAIL("chfn(1)"));
exit(fp == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}