#define strneq(a,b,n) (!strncmp(a,b,n))
#define memzero(b,n) memset(b,0,n)
- extern char *pathpath(char *, const char *, const char *);
+ extern char *pathpath(char *, const char *);
extern char *pathfind(const char *, const char *, const char *, char *,
size_t);
extern char *pathaccess(char *, const char *, const char *,
type = 0;
for (dp = state.head; dp; dp = dp->next) {
snprintf(tmp, sizeof(tmp), "%s/%s", dp->dir, name);
- if (pathpath(buf, tmp, ""))
+ if (pathpath(buf, tmp))
return buf;
if (type) {
snprintf(tmp, sizeof(tmp), "%s/%s.%s", dp->dir, name,
type);
- if (pathpath(buf, tmp, ""))
+ if (pathpath(buf, tmp))
return buf;
}
}
if ((s = strrchr(lib, ':')))
lib = (const char *) s + 1;
snprintf(tmp, sizeof(tmp), "lib/%s/%s", lib, name);
- if (pathpath(buf, tmp, ""))
+ if (pathpath(buf, tmp))
return buf;
if (type) {
snprintf(tmp, sizeof(tmp), "lib/%s/%s.%s", lib, name,
type);
- if (pathpath(buf, tmp, ""))
+ if (pathpath(buf, tmp))
return buf;
}
}