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

Diff for /src/usr.bin/mail/lex.c between version 1.6 and 1.7

version 1.6, 1997/07/13 21:21:13 version 1.7, 1997/07/13 23:54:00
Line 140 
Line 140 
         mailsize = fsize(ibuf);          mailsize = fsize(ibuf);
         if ((otf = fopen(tempMesg, "w")) == NULL)          if ((otf = fopen(tempMesg, "w")) == NULL)
                 err(1, tempMesg);                  err(1, tempMesg);
         (void) fcntl(fileno(otf), F_SETFD, 1);          (void)fcntl(fileno(otf), F_SETFD, 1);
         if ((itf = fopen(tempMesg, "r")) == NULL)          if ((itf = fopen(tempMesg, "r")) == NULL)
                 err(1, tempMesg);                  err(1, tempMesg);
         (void) fcntl(fileno(itf), F_SETFD, 1);          (void)fcntl(fileno(itf), F_SETFD, 1);
         rm(tempMesg);          rm(tempMesg);
         setptr(ibuf, 0);          setptr(ibuf, 0);
         setmsize(msgCount);          setmsize(msgCount);
Line 210 
Line 210 
         char linebuf[LINESIZE];          char linebuf[LINESIZE];
 #if __GNUC__  #if __GNUC__
         /* Avoid longjmp clobbering */          /* Avoid longjmp clobbering */
         (void) &eofloop;          (void)&eofloop;
 #endif  #endif
   
         if (!sourcing) {          if (!sourcing) {
Line 489 
Line 489 
 {  {
   
         if (msgvec != 0)          if (msgvec != 0)
                 free((char *) msgvec);                  (void)free(msgvec);
         msgvec = (int *) calloc((unsigned) (sz + 1), sizeof(*msgvec));          msgvec = (int *)calloc(sz + 1, sizeof(*msgvec));
 }  }
   
 /*  /*

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7