}
/* Input with library lookup */
-void inlib(char *file)
+void inlib(const char *file)
{
const char *p, *cp;
if ((p = getenv("LIBPATH")) == NULL)
va_start(ap, file);
cp = NULL;
- for (vp = va_arg(ap, char *); *vp != NULL;)
+ for (vp = va_arg(ap, char **); *vp != NULL;)
if (access(*vp, R_OK) >= 0) {
cp = *vp;
break;
va_end(ap);
if ( ! cp) {
va_start(ap, file);
- for (vp = va_arg(ap, char *); *vp != NULL; vp += 1)
+ for (vp = va_arg(ap, char **); *vp != NULL; vp += 1)
if ((cp = path(srcpath, *vp, R_OK)) != NULL)
break;
va_end(ap);
extern TOKEN *listtoken(char *, TOKEN *);
extern TOKEN *freetoken(TOKEN *);
extern void input(const char *);
-extern void inlib(char *);
+extern void inlib(const char *);
extern void inpath(char *, ...);
extern time_t getmdate(char *);
extern int fexists(char *);