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

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

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

revision 1.99 by cjwatson, Fri Aug 1 21:07:39 2003 UTC revision 1.100 by cjwatson, Thu Aug 14 23:16:30 2003 UTC
# Line 2821  static int try_section (const char *path Line 2821  static int try_section (const char *path
2821          for (np = names; np && *np; np++) {          for (np = names; np && *np; np++) {
2822                  struct mandata *info = infoalloc ();                  struct mandata *info = infoalloc ();
2823                  char *info_buffer = filename_info (*np, info, name);                  char *info_buffer = filename_info (*np, info, name);
2824                  char *ult;                  const char *ult;
2825                  if (!info_buffer)                  if (!info_buffer)
2826                          continue;                          continue;
2827                  info->addr = info_buffer;                  info->addr = info_buffer;
# Line 2864  static int display_filesystem (struct ca Line 2864  static int display_filesystem (struct ca
2864                          return 0;                          return 0;
2865                  return display (candp->path, NULL, filename, title, NULL);                  return display (candp->path, NULL, filename, title, NULL);
2866          } else {          } else {
2867                  char *man_file, *cat_file;                  const char *man_file;
2868                    char *cat_file;
2869                  int found;                  int found;
2870    
2871                  man_file = ult_src (filename, candp->path, NULL,                  man_file = ult_src (filename, candp->path, NULL,
# Line 2884  static int display_filesystem (struct ca Line 2885  static int display_filesystem (struct ca
2885                          fprintf (stderr, "will try cat file %s\n", cat_file);                          fprintf (stderr, "will try cat file %s\n", cat_file);
2886                  found = display (candp->path, man_file, cat_file, title, NULL);                  found = display (candp->path, man_file, cat_file, title, NULL);
2887                  free (cat_file);                  free (cat_file);
                 /* Be careful not to free man_file, as it's static. */  
2888                  free (title);                  free (title);
2889    
2890  #ifdef COMP_SRC  #ifdef COMP_SRC
# Line 2958  static int display_database (struct cand Line 2958  static int display_database (struct cand
2958                                   file);                                   file);
2959    
2960                  if (access (file, R_OK) == 0) {                  if (access (file, R_OK) == 0) {
2961                          char *man_file;                          const char *man_file;
2962                          char *cat_file;                          char *cat_file;
2963    
2964                          man_file = ult_src (file, candp->path, NULL,                          man_file = ult_src (file, candp->path, NULL,

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100

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