From: Jim Meyering Date: Sat, 10 May 2003 13:36:50 +0000 (+0000) Subject: (main): Use error, rather than fprintf, for the sake of consistency. X-Git-Tag: v5.0.1~555 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2de1d40446bc068b383f41dbc92c04a1fa1a62de;p=thirdparty%2Fcoreutils.git (main): Use error, rather than fprintf, for the sake of consistency. --- diff --git a/src/logname.c b/src/logname.c index 0a2335c0cb..ac2e8b3007 100644 --- a/src/logname.c +++ b/src/logname.c @@ -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); }