diff --git a/lib/bind/include/netgroup.h b/lib/bind/include/netgroup.h index 72003d4346..2296208c15 100644 --- a/lib/bind/include/netgroup.h +++ b/lib/bind/include/netgroup.h @@ -11,10 +11,14 @@ int getnetgrent __P((/* const */ char **, /* const */ char **, int getnetgrent_r __P((char **, char **, char **, char *, int)); -void setnetgrent __P((const char *)); - void endnetgrent __P((void)); +#ifdef __osf__ +int innetgr __P((char *, char *, char *, char *)); +void setnetgrent __P((char *)); +#else +void setnetgrent __P((const char *)); int innetgr __P((const char *, const char *, const char *, const char *)); #endif #endif +#endif diff --git a/lib/bind/irs/getnetgrent_r.c b/lib/bind/irs/getnetgrent_r.c index 777b5467a4..969790bf35 100644 --- a/lib/bind/irs/getnetgrent_r.c +++ b/lib/bind/irs/getnetgrent_r.c @@ -16,7 +16,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$Id: getnetgrent_r.c,v 1.7 2004/03/09 06:30:02 marka Exp $"; +static const char rcsid[] = "$Id: getnetgrent_r.c,v 1.8 2004/04/13 04:57:08 marka Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -77,7 +77,9 @@ setnetgrent_r(const char *netgroup, NGR_R_ENT_ARGS) setnetgrent_r(const char *netgroup) #endif { - setnetgrent(netgroup); + char *tmp; + DE_CONST(netgroup, tmp); + setnetgrent(tmp); #ifdef NGR_R_PRIVATE *buf = NULL; #endif