/[man-db]/man-db/src/check_mandirs.c
ViewVC logotype

Diff of /man-db/src/check_mandirs.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.41 by cjwatson, Tue Apr 22 18:54:15 2003 UTC revision 1.42 by cjwatson, Sun Apr 27 23:52:27 2003 UTC
# Line 128  void test_manfile (char *file, const cha Line 128  void test_manfile (char *file, const cha
128          struct lexgrog lg;          struct lexgrog lg;
129          char *manpage;          char *manpage;
130          struct mandata info, *exists;          struct mandata info, *exists;
         struct nlist *in_cache;  
131          struct stat buf;          struct stat buf;
132          size_t len;          size_t len;
133    
# Line 257  void test_manfile (char *file, const cha Line 256  void test_manfile (char *file, const cha
256           * clear the hash between calls.           * clear the hash between calls.
257           */           */
258    
259          in_cache = hash_lookup (whatis_hash, ult, strlen (ult));          lg.whatis = xstrdup (hash_lookup (whatis_hash, ult, strlen (ult)));
260    
261          if (in_cache) {         /* cache hit */          if (!lg.whatis) {       /* cache miss */
                 lg.whatis = in_cache->defn ? xstrdup (in_cache->defn) : NULL;  
         } else {                /* cache miss */  
262                  /* go get the whatis info in its raw state */                  /* go get the whatis info in its raw state */
263  #ifdef COMP_SRC  #ifdef COMP_SRC
264                  /* if the nroff was compressed, an uncompressed version is                  /* if the nroff was compressed, an uncompressed version is

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26