aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorMiles Bader2005-05-26 05:42:19 +0000
committerMiles Bader2005-05-26 05:42:19 +0000
commitd2eeec7fb90dc54c4b08e85f452a23317c0ee65d (patch)
treecd13677b902ee91ff96c5f43ca30ae2aba828312 /lib-src
parent5611ba87dd81c98d2cc00a4d01e19db3d26cf9d5 (diff)
parentc0e9b2d0ec9cb343733243371efecf77722b067f (diff)
downloademacs-d2eeec7fb90dc54c4b08e85f452a23317c0ee65d.tar.gz
emacs-d2eeec7fb90dc54c4b08e85f452a23317c0ee65d.zip
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-55
Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 320-323) - Update from CVS
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/yow.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 1370f05a9d6..aa9d3fe7fc6 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,8 @@
12005-05-25 Thien-Thi Nguyen <ttn@gnu.org>
2
3 * yow.c (setup_yow): Use EXIT_FAILURE in case no separators found.
4 (yow): Use EXIT_FAILURE in case of memory error.
5
12005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 62005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 7
3 * make-docfile.c (DIRECTORY_SEP): New macro. 8 * make-docfile.c (DIRECTORY_SEP): New macro.
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)
104 while ((c = getc(fp)) != SEP) { 104 while ((c = getc(fp)) != SEP) {
105 if (c == EOF) { 105 if (c == EOF) {
106 fprintf(stderr, "yow: file contains no separators\n"); 106 fprintf(stderr, "yow: file contains no separators\n");
107 exit(2); 107 exit(EXIT_FAILURE);
108 } 108 }
109 } 109 }
110 header_len = ftell(fp); 110 header_len = ftell(fp);
@@ -157,7 +157,7 @@ yow (fp)
157 buf = (char *) malloc(bufsize); 157 buf = (char *) malloc(bufsize);
158 if (buf == (char *)0) { 158 if (buf == (char *)0) {
159 fprintf(stderr, "yow: virtual memory exhausted\n"); 159 fprintf(stderr, "yow: virtual memory exhausted\n");
160 exit (3); 160 exit (EXIT_FAILURE);
161 } 161 }
162 162
163 buf[i++] = c; 163 buf[i++] = c;
@@ -170,7 +170,7 @@ yow (fp)
170 buf = (char *) realloc(buf, bufsize); 170 buf = (char *) realloc(buf, bufsize);
171 if (buf == (char *)0) { 171 if (buf == (char *)0) {
172 fprintf(stderr, "yow: virtual memory exhausted\n"); 172 fprintf(stderr, "yow: virtual memory exhausted\n");
173 exit (3); 173 exit (EXIT_FAILURE);
174 } 174 }
175 } 175 }
176 } 176 }