emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lib-src/yow.c


From: Thien-Thi Nguyen
Subject: [Emacs-diffs] Changes to emacs/lib-src/yow.c
Date: Wed, 25 May 2005 10:16:31 -0400

Index: emacs/lib-src/yow.c
diff -c emacs/lib-src/yow.c:1.20 emacs/lib-src/yow.c:1.21
*** emacs/lib-src/yow.c:1.20    Sat May  8 15:23:35 2004
--- emacs/lib-src/yow.c Wed May 25 14:16:31 2005
***************
*** 104,110 ****
    while ((c = getc(fp)) != SEP) {
      if (c == EOF) {
        fprintf(stderr, "yow: file contains no separators\n");
!       exit(2);
      }
    }
    header_len = ftell(fp);
--- 104,110 ----
    while ((c = getc(fp)) != SEP) {
      if (c == EOF) {
        fprintf(stderr, "yow: file contains no separators\n");
!       exit(EXIT_FAILURE);
      }
    }
    header_len = ftell(fp);
***************
*** 157,163 ****
    buf = (char *) malloc(bufsize);
    if (buf == (char *)0) {
      fprintf(stderr, "yow: virtual memory exhausted\n");
!     exit (3);
    }
  
    buf[i++] = c;
--- 157,163 ----
    buf = (char *) malloc(bufsize);
    if (buf == (char *)0) {
      fprintf(stderr, "yow: virtual memory exhausted\n");
!     exit (EXIT_FAILURE);
    }
  
    buf[i++] = c;
***************
*** 170,176 ****
        buf = (char *) realloc(buf, bufsize);
        if (buf == (char *)0) {
        fprintf(stderr, "yow: virtual memory exhausted\n");
!       exit (3);
        }
      }
    }
--- 170,176 ----
        buf = (char *) realloc(buf, bufsize);
        if (buf == (char *)0) {
        fprintf(stderr, "yow: virtual memory exhausted\n");
!       exit (EXIT_FAILURE);
        }
      }
    }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]