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

Diff for /src/usr.bin/man/Attic/config.c between version 1.6 and 1.7

version 1.6, 2004/09/15 22:20:03 version 1.7, 2005/10/17 19:08:46
Line 100 
Line 100 
                         continue;                          continue;
                 *t = '\0';                  *t = '\0';
   
                 for (tp = head.tqh_first;       /* Find any matching tag. */                  for (tp = TAILQ_FIRST(&head);   /* Find any matching tag. */
                     tp != NULL && strcmp(p, tp->s); tp = tp->q.tqe_next);                      tp != NULL && strcmp(p, tp->s); tp = TAILQ_NEXT(tp, q));
   
                 if (tp == NULL)         /* Create a new tag. */                  if (tp == NULL)         /* Create a new tag. */
                         tp = addlist(p);                          tp = addlist(p);
Line 156 
Line 156 
 {  {
         TAG *tp;          TAG *tp;
   
         for (tp = head.tqh_first; tp != NULL; tp = tp->q.tqe_next)          TAILQ_FOREACH(tp, &head, q)
                 if (!strcmp(name, tp->s))                  if (!strcmp(name, tp->s))
                         return (tp);                          return (tp);
         return (NULL);          return (NULL);

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