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

Diff for /src/usr.bin/mail/cmd2.c between version 1.3 and 1.4

version 1.3, 1997/07/13 21:21:09 version 1.4, 1997/07/13 23:53:57
Line 176 
Line 176 
         int f, *msgvec;          int f, *msgvec;
         FILE *obuf;          FILE *obuf;
   
         msgvec = (int *) salloc((msgCount + 2) * sizeof(*msgvec));          msgvec = (int *)salloc((msgCount + 2) * sizeof(*msgvec));
         if ((file = snarf(str, &f)) == NOSTR)          if ((file = snarf(str, &f)) == NOSTR)
                 return(1);                  return(1);
         if (!f) {          if (!f) {
Line 500 
Line 500 
                 if (member(field, tab))                  if (member(field, tab))
                         continue;                          continue;
                 h = hash(field);                  h = hash(field);
                 igp = (struct ignore *) calloc(1, sizeof(struct ignore));                  igp = (struct ignore *)calloc(1, sizeof(struct ignore));
                 igp->i_field = calloc((unsigned) strlen(field) + 1,                  igp->i_field = (char *)calloc(strlen(field) + 1, sizeof(char));
                         sizeof(char));  
                 strcpy(igp->i_field, field);                  strcpy(igp->i_field, field);
                 igp->i_link = tab->i_head[h];                  igp->i_link = tab->i_head[h];
                 tab->i_head[h] = igp;                  tab->i_head[h] = igp;
Line 527 
Line 526 
                 printf("No fields currently being %s.\n", which);                  printf("No fields currently being %s.\n", which);
                 return(0);                  return(0);
         }          }
         ring = (char **) salloc((tab->i_count + 1) * sizeof(char *));          ring = (char **)salloc((tab->i_count + 1) * sizeof(char *));
         ap = ring;          ap = ring;
         for (h = 0; h < HSHSIZE; h++)          for (h = 0; h < HSHSIZE; h++)
                 for (igp = tab->i_head[h]; igp != 0; igp = igp->i_link)                  for (igp = tab->i_head[h]; igp != 0; igp = igp->i_link)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4