Replace printf by puts for fixed strings. This would avoid issues caused

by formats introduced in translated strings.
This commit is contained in:
nekral-guest
2008-01-24 20:42:12 +00:00
parent 96f7a7588f
commit 3dd5866244
17 changed files with 73 additions and 79 deletions

View File

@ -68,14 +68,14 @@ static struct passwd *pwent;
static void usage (void)
{
fprintf (stdout, _("Usage: lastlog [options]\n"
fputs (_("Usage: lastlog [options]\n"
"\n"
"Options:\n"
" -b, --before DAYS print only lastlog records older than DAYS\n"
" -h, --help display this help message and exit\n"
" -t, --time DAYS print only lastlog records more recent than DAYS\n"
" -u, --user LOGIN print lastlog record of the specified LOGIN\n"
"\n"));
"\n"), stderr);
exit (1);
}
@ -95,10 +95,9 @@ static void print_one (const struct passwd *pw)
if (!once) {
#ifdef HAVE_LL_HOST
printf (_
("Username Port From Latest\n"));
puts (_("Username Port From Latest\n"));
#else
printf (_("Username Port Latest\n"));
puts (_("Username Port Latest\n"));
#endif
once++;
}