summaryrefslogtreecommitdiffstats
path: root/contrib/bind9/lib/bind/irs/irp_ng.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bind9/lib/bind/irs/irp_ng.c')
-rw-r--r--contrib/bind9/lib/bind/irs/irp_ng.c31
1 files changed, 6 insertions, 25 deletions
diff --git a/contrib/bind9/lib/bind/irs/irp_ng.c b/contrib/bind9/lib/bind/irs/irp_ng.c
index cf7bc7c..e0aa468 100644
--- a/contrib/bind9/lib/bind/irs/irp_ng.c
+++ b/contrib/bind9/lib/bind/irs/irp_ng.c
@@ -16,7 +16,7 @@
*/
#if !defined(LINT) && !defined(CODECENTER)
-static const char rcsid[] = "$Id: irp_ng.c,v 1.1.206.1 2004/03/09 08:33:37 marka Exp $";
+static const char rcsid[] = "$Id: irp_ng.c,v 1.2.18.2 2006/12/07 04:53:02 marka Exp $";
#endif
/* Imports */
@@ -62,13 +62,7 @@ static void ng_minimize(struct irs_ng *);
/* Public */
-
-
-/*
- * struct irs_ng * irs_irp_ng(struct irs_acc *this)
- *
- * Notes:
- *
+/*%
* Intialize the irp netgroup module.
*
*/
@@ -155,15 +149,7 @@ ng_rewind(struct irs_ng *this, const char *group) {
return;
}
-
-
-
/*
- * int ng_next(struct irs_ng *this, const char **host, const char **user,
- * const char **domain)
- *
- * Notes:
- *
* Get the next netgroup item from the cache.
*
*/
@@ -205,14 +191,7 @@ ng_next(struct irs_ng *this, const char **host, const char **user,
return (rval);
}
-
-
/*
- * int ng_test(struct irs_ng *this, const char *name, const char *host,
- * const char *user, const char *domain)
- *
- * Notes:
- *
* Search for a match in a netgroup.
*
*/
@@ -239,14 +218,14 @@ ng_test(struct irs_ng *this, const char *name,
}
if (irs_irp_send_command(pvt->girpdata, "innetgr %s", body) == 0) {
- memput(body, bodylen);
-
code = irs_irp_read_response(pvt->girpdata, text, sizeof text);
if (code == IRPD_GETNETGR_MATCHES) {
rval = 1;
}
}
+ memput(body, bodylen);
+
return (rval);
}
@@ -270,3 +249,5 @@ ng_minimize(struct irs_ng *this) {
/* Private */
+
+/*! \file */
OpenPOWER on IntegriCloud