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

Diff for /src/usr.bin/deroff/deroff.c between version 1.5 and 1.6

version 1.5, 2003/06/03 02:56:07 version 1.6, 2004/06/02 14:58:46
Line 447 
Line 447 
   
         q = (struct chain *) malloc(sizeof(struct chain));          q = (struct chain *) malloc(sizeof(struct chain));
         if (q == NULL)          if (q == NULL)
                 err(1, "malloc");                  err(1, NULL);
         q->nextp = namechain;          q->nextp = namechain;
         q->datap = strdup(fname);          q->datap = strdup(fname);
         if (q->datap == NULL)          if (q->datap == NULL)
                 err(1, "strdup");                  err(1, NULL);
         namechain = q;          namechain = q;
 }  }
   
Line 1598 
Line 1598 
         size += sizetab(p2);          size += sizetab(p2);
         back = (struct mactab *)calloc(size+2, sizeof(struct mactab));          back = (struct mactab *)calloc(size+2, sizeof(struct mactab));
         if (back == NULL)          if (back == NULL)
                 err(1, "calloc");                  err(1, NULL);
   
         p = macfill(back, troffmactab);          p = macfill(back, troffmactab);
         p = macfill(p, ppmactab);          p = macfill(p, ppmactab);

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