projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.
[gnulib.git]
/
lib
/
rmdir.c
diff --git
a/lib/rmdir.c
b/lib/rmdir.c
index
58b2edb
..
2a92803
100644
(file)
--- a/
lib/rmdir.c
+++ b/
lib/rmdir.c
@@
-44,7
+44,8
@@
int
rmdir (dpath)
char *dpath;
{
rmdir (dpath)
char *dpath;
{
- int cpid, status;
+ pid_t cpid;
+ int status;
struct stat statbuf;
if (stat (dpath, &statbuf) != 0)
struct stat statbuf;
if (stat (dpath, &statbuf) != 0)
@@
-73,7
+74,7
@@
rmdir (dpath)
while (wait (&status) != cpid)
/* Do nothing. */ ;
while (wait (&status) != cpid)
/* Do nothing. */ ;
- if (status
& 0xFFFF
)
+ if (status)
{
/* /bin/rmdir failed. */
{
/* /bin/rmdir failed. */