aboutsummaryrefslogtreecommitdiff
path: root/nis/nis_destroygroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'nis/nis_destroygroup.c')
-rw-r--r--nis/nis_destroygroup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nis/nis_destroygroup.c b/nis/nis_destroygroup.c
index 6ece453..5b70a67 100644
--- a/nis/nis_destroygroup.c
+++ b/nis/nis_destroygroup.c
@@ -19,7 +19,6 @@
#include <string.h>
#include <rpcsvc/nis.h>
-#include <rpcsvc/nislib.h>
nis_error
nis_destroygroup (const_nis_name group)
@@ -42,7 +41,7 @@ nis_destroygroup (const_nis_name group)
stpcpy (cp, cp2);
}
res = nis_remove (buf, NULL);
- status = res->status;
+ status = NIS_RES_STATUS (res);
nis_freeresult (res);
return status;
}