decunix prototype mismatch

decunix silence compiler warning.
This commit is contained in:
Mark Andrews
2004-04-13 04:57:08 +00:00
parent a72932d4c7
commit 2e7f4872e3
2 changed files with 10 additions and 4 deletions

View File

@@ -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

View File

@@ -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 <port_before.h>
@@ -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