SCCS-vsn: usr.bin/apropos/apropos.c 5.2
#include <ctype.h>
#define DEF_PATH "/usr/man" /* default man path */
#include <ctype.h>
#define DEF_PATH "/usr/man" /* default man path */
-#define MAXLINELEN 500 /* max line handled */
+#define MAXLINELEN 1000 /* max line handled */
#define NO 0 /* no/false */
#define WHATIS "whatis" /* database name */
#define YES 1 /* yes/true */
#define NO 0 /* no/false */
#define WHATIS "whatis" /* database name */
#define YES 1 /* yes/true */
fprintf(stderr, "%s: out of space.\n", myname);
exit(1);
}
fprintf(stderr, "%s: out of space.\n", myname);
exit(1);
}
- bzero(found, argc * sizeof(int)); /* calloc is silly */
+ bzero((char *)found, argc * sizeof(int)); /* calloc is silly */
- for (C = argv; *C; ++C) { /* trim full paths */
+ for (C = argv; *C; ++C) { /* trim full paths */
if (beg = rindex(*C, '/'))
*C = beg + 1;
}
if (beg = rindex(*C, '/'))
*C = beg + 1;
}