From 7235a58f704aff3428fe11c4729e2e23e0eab7d5 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Wed, 25 May 2005 14:17:42 +0000 Subject: (setup_yow): Use EXIT_FAILURE in case no separators found. (yow): Use EXIT_FAILURE in case of memory error. --- lib-src/yow.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib-src/yow.c') diff --git a/lib-src/yow.c b/lib-src/yow.c index 9d58ce5aecb..1356ac6db18 100644 --- a/lib-src/yow.c +++ b/lib-src/yow.c @@ -104,7 +104,7 @@ setup_yow(fp) while ((c = getc(fp)) != SEP) { if (c == EOF) { fprintf(stderr, "yow: file contains no separators\n"); - exit(2); + exit(EXIT_FAILURE); } } header_len = ftell(fp); @@ -157,7 +157,7 @@ yow (fp) buf = (char *) malloc(bufsize); if (buf == (char *)0) { fprintf(stderr, "yow: virtual memory exhausted\n"); - exit (3); + exit (EXIT_FAILURE); } buf[i++] = c; @@ -170,7 +170,7 @@ yow (fp) buf = (char *) realloc(buf, bufsize); if (buf == (char *)0) { fprintf(stderr, "yow: virtual memory exhausted\n"); - exit (3); + exit (EXIT_FAILURE); } } } -- cgit v1.2.1