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 [emacs-unicode-2]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lib-src/yow.c [emacs-unicode-2]
Date: Mon, 28 Jun 2004 04:37:21 -0400

Index: emacs/lib-src/yow.c
diff -c emacs/lib-src/yow.c:1.18.4.1 emacs/lib-src/yow.c:1.18.4.2
*** emacs/lib-src/yow.c:1.18.4.1        Fri Apr 16 12:49:44 2004
--- emacs/lib-src/yow.c Mon Jun 28 07:28:23 2004
***************
*** 73,79 ****
    if ((fp = fopen(file, "r")) == NULL) {
      fprintf(stderr, "yow: ");
      perror(file);
!     exit(1);
    }
  
    /* initialize random seed */
--- 73,79 ----
    if ((fp = fopen(file, "r")) == NULL) {
      fprintf(stderr, "yow: ");
      perror(file);
!     exit(EXIT_FAILURE);
    }
  
    /* initialize random seed */
***************
*** 82,88 ****
    setup_yow(fp);
    yow(fp);
    fclose(fp);
!   return 0;
  }
  
  static long len = -1;
--- 82,88 ----
    setup_yow(fp);
    yow(fp);
    fclose(fp);
!   return EXIT_SUCCESS;
  }
  
  static long len = -1;
***************
*** 113,119 ****
  
    if (fseek(fp, 0L, 2) == -1) {
      perror("yow");
!     exit(1);
    }
    len = ftell(fp) - header_len;
  }
--- 113,119 ----
  
    if (fseek(fp, 0L, 2) == -1) {
      perror("yow");
!     exit(EXIT_FAILURE);
    }
    len = ftell(fp) - header_len;
  }
***************
*** 132,138 ****
    offset = rand() % len + header_len;
    if (fseek(fp, offset, 0) == -1) {
      perror("yow");
!     exit(1);
    }
  
    /* Read until SEP, read next line, print it.
--- 132,138 ----
    offset = rand() % len + header_len;
    if (fseek(fp, offset, 0) == -1) {
      perror("yow");
!     exit(EXIT_FAILURE);
    }
  
    /* Read until SEP, read next line, print it.
***************
*** 180,182 ****
--- 180,184 ----
  
  /* arch-tag: e40fc0df-bafb-4001-af24-5c883d1c685e
     (do not change this comment) */
+ 
+ /* yow.c ends here */




reply via email to

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