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

Diff for /src/usr.bin/msgs/Attic/msgs.c between version 1.32 and 1.33

version 1.32, 2007/09/09 12:36:38 version 1.33, 2007/09/11 18:22:42
Line 127 
Line 127 
 bool    mailing = NO;  bool    mailing = NO;
 bool    quitit = NO;  bool    quitit = NO;
 bool    sending = NO;  bool    sending = NO;
 bool    intrpflg = NO;  
 bool    restricted = NO;  bool    restricted = NO;
 int     uid;  int     uid;
 int     msg;  int     msg;
Line 137 
Line 136 
 int     Lpp = 0;  int     Lpp = 0;
 time_t  t;  time_t  t;
 time_t  keep;  time_t  keep;
   volatile sig_atomic_t   intrpflg = 0;
   
 void prmesg(int);  void prmesg(int);
 void onintr(int);  void onintr(int);
Line 588 
Line 588 
                         prevmsg = msg;                          prevmsg = msg;
                 }                  }
   
                 printf("--%s--\n", sep);                  printf("--%s--\n", (intrpflg ? "Interrupt" : sep));
                 sep = "-";                  sep = "-";
                 if (msg >= nextmsg) {                  if (msg >= nextmsg) {
                         nextmsg = msg + 1;                          nextmsg = msg + 1;
Line 689 
Line 689 
                 write(STDOUT_FILENO, "\n", 1);                  write(STDOUT_FILENO, "\n", 1);
                 if (hdrs)                  if (hdrs)
                         _exit(0);                          _exit(0);
                 sep = "Interrupt";  
                 if (newmsg)                  if (newmsg)
                         fseeko(newmsg, (off_t)0, SEEK_END);                          fseeko(newmsg, (off_t)0, SEEK_END);
                 intrpflg = YES;                  intrpflg = 1;
         }          }
         errno = save_errno;          errno = save_errno;
 }  }
Line 752 
Line 751 
   
         printf("%s ", prompt);          printf("%s ", prompt);
         fflush(stdout);          fflush(stdout);
         intrpflg = NO;          intrpflg = 0;
         if (fgets(inbuf, sizeof inbuf, stdin) == NULL)          if (fgets(inbuf, sizeof inbuf, stdin) == NULL)
                 errx(1, "could not read input");                  errx(1, "could not read input");
         inbuf[strcspn(inbuf, "\n")] = '\0';          inbuf[strcspn(inbuf, "\n")] = '\0';

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33