summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/od.c6
-rw-r--r--src/paste.c7
2 files changed, 7 insertions, 6 deletions
diff --git a/src/od.c b/src/od.c
index 5dd9d9f4d..00b8f9939 100644
--- a/src/od.c
+++ b/src/od.c
@@ -1,5 +1,5 @@
/* od -- dump files in octal and other formats
- Copyright (C) 92, 1995-2003 Free Software Foundation, Inc.
+ Copyright (C) 92, 1995-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
@@ -278,7 +278,7 @@ static struct option const long_options[] =
void
usage (int status)
{
- if (status != 0)
+ if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
@@ -368,7 +368,7 @@ implies 32. By default, od uses -A o -t d2 -w 16.\n\
"), stdout);
printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
}
- exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
+ exit (status);
}
/* Compute the greatest common denominator of U and V
diff --git a/src/paste.c b/src/paste.c
index caf23d6ef..ccd0e8baf 100644
--- a/src/paste.c
+++ b/src/paste.c
@@ -1,5 +1,6 @@
/* paste - merge lines of files
- Copyright (C) 1984, 1997-2003 by David M. Ihnat
+ Copyright (C) 1997-2004 Free Software Foundation, Inc.
+ Copyright (C) 1984 David M. Ihnat
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
@@ -387,7 +388,7 @@ paste_serial (size_t nfiles, char **fnamptr)
void
usage (int status)
{
- if (status != 0)
+ if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
@@ -414,7 +415,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\
/* FIXME: add a couple of examples. */
printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
}
- exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
+ exit (status);
}
int