comparison lib-src/fakemail.c @ 55442:a47704955f8d

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.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Sat, 08 May 2004 15:23:35 +0000
parents 695cf19ef79e
children 23a17af379b1 4c90ffeb71c5
comparison
equal deleted inserted replaced
55441:406c79b8022c 55442:a47704955f8d
167 static void 167 static void
168 fatal (s1, s2) 168 fatal (s1, s2)
169 char *s1, *s2; 169 char *s1, *s2;
170 { 170 {
171 error (s1, s2); 171 error (s1, s2);
172 exit (1); 172 exit (EXIT_FAILURE);
173 } 173 }
174 174
175 /* Like malloc but get fatal error if memory is exhausted. */ 175 /* Like malloc but get fatal error if memory is exhausted. */
176 176
177 static long * 177 static long *
408 rem != ((stream_list) NULL); 408 rem != ((stream_list) NULL);
409 rem = rem->rest_streams) 409 rem = rem->rest_streams)
410 no_problems = (no_problems && 410 no_problems = (no_problems &&
411 ((*rem->action) (rem->handle) == 0)); 411 ((*rem->action) (rem->handle) == 0));
412 the_streams = ((stream_list) NULL); 412 the_streams = ((stream_list) NULL);
413 return (no_problems ? 0 : 1); 413 return (no_problems ? EXIT_SUCCESS : EXIT_FAILURE);
414 } 414 }
415 415
416 void 416 void
417 add_a_stream (the_stream, closing_action) 417 add_a_stream (the_stream, closing_action)
418 FILE *the_stream; 418 FILE *the_stream;
665 } 665 }
666 666
667 if (next_line == ((line_list *) NULL)) 667 if (next_line == ((line_list *) NULL))
668 { 668 {
669 /* Not a valid header */ 669 /* Not a valid header */
670 exit (1); 670 exit (EXIT_FAILURE);
671 } 671 }
672 *next_line = new_list (); 672 *next_line = new_list ();
673 (*next_line)->string = alloc_string (length); 673 (*next_line)->string = alloc_string (length);
674 strcpy (((*next_line)->string), line); 674 strcpy (((*next_line)->string), line);
675 next_line = &((*next_line)->continuation); 675 next_line = &((*next_line)->continuation);
751 #endif /* not MSDOS */ 751 #endif /* not MSDOS */
752 #endif /* not BSD 4.2 (or newer) */ 752 #endif /* not BSD 4.2 (or newer) */
753 753
754 /* arch-tag: acb0afa6-315a-4c5b-b9e3-def5725c8783 754 /* arch-tag: acb0afa6-315a-4c5b-b9e3-def5725c8783
755 (do not change this comment) */ 755 (do not change this comment) */
756
757 /* fakemail.c ends here */