summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnuvola.org>2004-05-10 17:32:13 +0000
committerThien-Thi Nguyen <ttn@gnuvola.org>2004-05-10 17:32:13 +0000
commit80e26b667a4386fb1422434f621d7aabae3e9769 (patch)
treef2b0ba108e423586e86a25563b7c72a760110bce /lib-src
parente109331adea4e40f0a461654a5fb7c61b041d56d (diff)
downloademacs-80e26b667a4386fb1422434f621d7aabae3e9769.tar.gz
(main): For failing cases, exit with `EXIT_FAILURE'.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog4
-rw-r--r--lib-src/test-distrib.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index c841df23097..ac789eb3181 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,7 @@
+2004-05-10 Thien-Thi Nguyen <ttn@gnu.org>
+
+ * test-distrib.c (main): For failing cases, exit with `EXIT_FAILURE'.
+
2004-05-08 Jason Rumney <jasonr@gnu.org>
* makefile.w32-in (lisp1, lisp2): Split lisp to avoid long
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c
index 97e87695c7c..0333bd7d710 100644
--- a/lib-src/test-distrib.c
+++ b/lib-src/test-distrib.c
@@ -80,13 +80,13 @@ main (argc, argv)
if (argc != 2)
{
fprintf (stderr, "Usage: %s testfile\n", argv[0]);
- exit (2);
+ exit (EXIT_FAILURE);
}
fd = open (argv[1], O_RDONLY);
if (fd < 0)
{
perror (argv[1]);
- exit (2);
+ exit (EXIT_FAILURE);
}
if (cool_read (fd, buf, sizeof string1) != sizeof string1 ||
strcmp (buf, string1) ||
@@ -97,7 +97,7 @@ main (argc, argv)
Most likely this means that many nonprinting characters\n\
have been corrupted in the files of Emacs, and it will not work.\n",
argv[1]);
- exit (2);
+ exit (EXIT_FAILURE);
}
close (fd);
return EXIT_SUCCESS;