summaryrefslogtreecommitdiff
path: root/src/hostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostname.c')
-rw-r--r--src/hostname.c6
1 files changed, 3 insertions, 3 deletions
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);
}