[BACK]Return to rcsutil.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rcs

Diff for /src/usr.bin/rcs/rcsutil.c between version 1.24 and 1.25

version 1.24, 2007/01/02 16:43:45 version 1.25, 2007/01/10 02:13:23
Line 343 
Line 343 
                 (void)fprintf(stderr, "%s", prompt);                  (void)fprintf(stderr, "%s", prompt);
         if (isatty(STDIN_FILENO))          if (isatty(STDIN_FILENO))
                 (void)fprintf(stderr, ">> ");                  (void)fprintf(stderr, ">> ");
           clearerr(stdin);
         while ((buf = fgetln(stdin, &len)) != NULL) {          while ((buf = fgetln(stdin, &len)) != NULL) {
                 /* The last line may not be EOL terminated. */                  /* The last line may not be EOL terminated. */
                 if (buf[0] == '.' && (len == 1 || buf[1] == '\n'))                  if (buf[0] == '.' && (len == 1 || buf[1] == '\n'))
Line 564 
Line 565 
         fflush(stderr);          fflush(stderr);
         fflush(stdout);          fflush(stdout);
   
           clearerr(stdin);
         if (isalpha(c = getchar()))          if (isalpha(c = getchar()))
                 c = tolower(c);                  c = tolower(c);
         if (c == defc || c == '\n' || (c == EOF && feof(stdin)))          if (c == defc || c == '\n' || (c == EOF && feof(stdin)))

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25