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

@@ -60,7 +60,7 @@ static struct stat statbuf; /* fstat buffer for file size */
static void usage (void)
{
fprintf (stderr, _("Usage: faillog [options]\n"
fputs (_("Usage: faillog [options]\n"
"\n"
"Options:\n"
" -a, --all display faillog records for all users\n"
@@ -72,7 +72,7 @@ static void usage (void)
" -u, --user LOGIN display faillog record or maintains failure\n"
" counters and limits (if used with -r, -m or -l\n"
" options) only for user with LOGIN\n"
"\n"));
"\n"), stderr);
exit (E_USAGE);
}
@@ -89,8 +89,7 @@ static void print_one (const struct faillog *fl, uid_t uid)
#endif
if (!once) {
printf (_
("Login Failures Maximum Latest On\n"));
puts (_("Login Failures Maximum Latest On\n"));
once++;
}
pwent = getpwuid (uid); /* local, no need for xgetpwuid */