of chkdir() as failure, not just -1.
continue;
} else {
dir = chkdir(*cp++, DIR_STOP, DIR_LAST);
- if (dir == -1) {
+ if (dir < 0) {
if (NULL != (cp = lnd_path(together, lnd, buf)))
continue;
direrr("`%c' to stop", 0, 0);
continue;
} else {
dir = chkdir(*cp++, DIR_STOP, DIR_VIEW);
- if (dir == -1) {
+ if (dir < 0) {
if (NULL != (cp = shp_path(together, shp, buf)))
continue;
direrr("`%c' to stop", ", `%c' to view, ", 0);
}
dir = chkdir(sp->shp_rpath[0], DIR_STOP, DIR_VIEW);
memmove(sp->shp_rpath, sp->shp_rpath+1, sizeof(sp->shp_rpath) - 1);
- if (dir == -1)
+ if (dir < 0)
continue;
if (dir == DIR_STOP)
stopping++;
}
dir = chkdir(lp->lnd_rpath[0], DIR_STOP, DIR_VIEW);
memmove(lp->lnd_rpath, lp->lnd_rpath+1, sizeof(lp->lnd_rpath) - 1);
- if (dir == -1)
+ if (dir < 0)
continue;
if (dir == DIR_STOP)
stopping++;