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; |
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, |
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 |
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, |