}
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++;