summaryrefslogtreecommitdiff
path: root/lib-src/fakemail.c
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnuvola.org>2004-05-08 15:26:33 +0000
committerThien-Thi Nguyen <ttn@gnuvola.org>2004-05-08 15:26:33 +0000
commit65396510c3ff5e5386560d586cb117f6a9d06c27 (patch)
treee1240e2d08ba9f72fe44e62318c67c3065913d1c /lib-src/fakemail.c
parent28712a21247d1a503e7620e47c128c0fc33b3bb3 (diff)
downloademacs-65396510c3ff5e5386560d586cb117f6a9d06c27.tar.gz
Throughout, replace 0 destined for `exit' arg with `EXIT_SUCCESS'.
Likewise, replace 1 with `EXIT_FAILURE'. (main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
Diffstat (limited to 'lib-src/fakemail.c')
-rw-r--r--lib-src/fakemail.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c
index 944a728a28c..cee7eaa130e 100644
--- a/lib-src/fakemail.c
+++ b/lib-src/fakemail.c
@@ -169,7 +169,7 @@ fatal (s1, s2)
char *s1, *s2;
{
error (s1, s2);
- exit (1);
+ exit (EXIT_FAILURE);
}
/* Like malloc but get fatal error if memory is exhausted. */
@@ -410,7 +410,7 @@ close_the_streams ()
no_problems = (no_problems &&
((*rem->action) (rem->handle) == 0));
the_streams = ((stream_list) NULL);
- return (no_problems ? 0 : 1);
+ return (no_problems ? EXIT_SUCCESS : EXIT_FAILURE);
}
void
@@ -667,7 +667,7 @@ read_header ()
if (next_line == ((line_list *) NULL))
{
/* Not a valid header */
- exit (1);
+ exit (EXIT_FAILURE);
}
*next_line = new_list ();
(*next_line)->string = alloc_string (length);
@@ -753,3 +753,5 @@ main (argc, argv)
/* arch-tag: acb0afa6-315a-4c5b-b9e3-def5725c8783
(do not change this comment) */
+
+/* fakemail.c ends here */