From 1d502554630cbb2555134909848158031c589ae1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 21 Jan 2004 23:09:07 +0000 Subject: (usage): Use EXIT_SUCCESS, not 0, for clarity. (main): Exit with status 1, not 2, on errors detected by hostname proper. --- src/hostname.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/hostname.c') diff --git a/src/hostname.c b/src/hostname.c index 52c1892f4..9fcb897c7 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -1,5 +1,5 @@ /* hostname - set or print the name of current host system - Copyright (C) 1994-1997, 1999-2003 Free Software Foundation, Inc. + Copyright (C) 1994-1997, 1999-2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -58,7 +58,7 @@ char *program_name; void usage (int status) { - if (status != 0) + if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); else @@ -119,7 +119,7 @@ main (int argc, char **argv) } else { - error (2, 0, _("too many arguments")); + error (0, 0, _("too many arguments")); usage (EXIT_FAILURE); } -- cgit v1.2.3-54-g00ecf