X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Frmdir.c;h=2a92803db7e60c14f01b6cd4567657ca746d465d;hb=a76a349e949dfad5716eb3893052070b770e949f;hp=58b2edb7df584a3597db05cb51162cc0625956d3;hpb=3694c647bbc717913a28b5ad214a8540e7e725cf;p=gnulib.git diff --git a/lib/rmdir.c b/lib/rmdir.c index 58b2edb7d..2a92803db 100644 --- a/lib/rmdir.c +++ b/lib/rmdir.c @@ -44,7 +44,8 @@ int rmdir (dpath) char *dpath; { - int cpid, status; + pid_t cpid; + int status; struct stat statbuf; if (stat (dpath, &statbuf) != 0) @@ -73,7 +74,7 @@ rmdir (dpath) while (wait (&status) != cpid) /* Do nothing. */ ; - if (status & 0xFFFF) + if (status) { /* /bin/rmdir failed. */