1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-09 10:11:34 +02:00

(main): Use error, rather than fprintf, for the sake of consistency.

This commit is contained in:
Jim Meyering
2003-05-10 13:36:50 +00:00
parent 0919600481
commit 2de1d40446
+2 -1
View File
@@ -100,6 +100,7 @@ main (int argc, char **argv)
exit (EXIT_SUCCESS);
}
/* POSIX prohibits using a fallback technique. */
fprintf (stderr, _("%s: no login name\n"), argv[0]);
error (0, 0, _("no login name"));
exit (EXIT_FAILURE);
}