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

Diff for /src/usr.bin/man/Attic/man.c between version 1.44 and 1.45

version 1.44, 2012/01/05 21:46:15 version 1.45, 2012/02/05 18:51:18
Line 95 
Line 95 
         extern char *optarg;          extern char *optarg;
         extern int optind;          extern int optind;
         TAG *searchlist;          TAG *searchlist;
         ENTRY *ep;  
         glob_t pg;          glob_t pg;
         size_t len;          size_t len;
         int ch, f_cat, f_how, found;          int ch, f_cat, f_how, found;
Line 339 
Line 338 
         char *p, *slashp;          char *p, *slashp;
   
         while ((p = strsep(&path, ":")) != NULL) {          while ((p = strsep(&path, ":")) != NULL) {
                   /* Skip empty fields */
                   if (*p == '\0')
                           continue;
   
                 if ((ep = malloc(sizeof(ENTRY))) == NULL)                  if ((ep = malloc(sizeof(ENTRY))) == NULL)
                         err(1, NULL);                          err(1, NULL);
   
Line 434 
Line 437 
 {  {
         ENTRY *ep, *e_sufp, *e_tag;          ENTRY *ep, *e_sufp, *e_tag;
         TAG *missp, *sufp;          TAG *missp, *sufp;
         int anyfound, cnt, found, globres;          int anyfound, cnt, found;
         char *p, buf[MAXPATHLEN];          char *p, buf[MAXPATHLEN];
   
         anyfound = 0;          anyfound = 0;

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45