aboutsummaryrefslogtreecommitdiff
path: root/libexec/revnetgroup/parse_netgroup.c
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>1997-11-25 07:14:34 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>1997-11-25 07:14:34 +0000
commit3029b69f0b84c0ffdcd746db6190540bbb3ee35a (patch)
tree20063d7bb16b71f872b623ae4b9d7a41078d4f14 /libexec/revnetgroup/parse_netgroup.c
parent95802bf80331116e00615b58ac14cf6b30c79bc9 (diff)
Notes
Diffstat (limited to 'libexec/revnetgroup/parse_netgroup.c')
-rw-r--r--libexec/revnetgroup/parse_netgroup.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/libexec/revnetgroup/parse_netgroup.c b/libexec/revnetgroup/parse_netgroup.c
index 14e7e238a7ca..19a90108af2a 100644
--- a/libexec/revnetgroup/parse_netgroup.c
+++ b/libexec/revnetgroup/parse_netgroup.c
@@ -34,9 +34,10 @@
* SUCH DAMAGE.
*/
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "$Id$";
-#endif /* LIBC_SCCS and not lint */
+#ifndef lint
+static const char rcsid[] =
+ "$Id$";
+#endif /* not lint */
/*
* This is a specially hacked-up version of getnetgrent.c used to parse
@@ -51,10 +52,6 @@ static char sccsid[] = "$Id$";
#include <unistd.h>
#include "hash.h"
-#ifndef lint
-static const char rcsid[] = "$Id$";
-#endif
-
/*
* Static Variables and functions used by setnetgrent(), getnetgrent() and
* __endnetgrent().
@@ -211,7 +208,7 @@ parse_netgrp(group)
* spewing it out from inside libc can actually hose
* certain programs.
*/
- fprintf(stderr, "Cycle in netgroup %s\n", lp->l_groupname);
+ warnx("cycle in netgroup %s", lp->l_groupname);
#endif
return (1);
} else
@@ -265,7 +262,7 @@ parse_netgrp(group)
* stay silent by default for compatibility's sake.
*/
if (fields < 3)
- fprintf(stderr, "Bad entry (%s%s%s%s%s) in netgroup \"%s\"\n",
+ warnx("bad entry (%s%s%s%s%s) in netgroup \"%s\"",
grp->ng_str[NG_HOST] == NULL ? "" : grp->ng_str[NG_HOST],
grp->ng_str[NG_USER] == NULL ? "" : ",",
grp->ng_str[NG_USER] == NULL ? "" : grp->ng_str[NG_USER],