]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
decunix prototype mismatch
authorMark Andrews <marka@isc.org>
Tue, 13 Apr 2004 04:49:01 +0000 (04:49 +0000)
committerMark Andrews <marka@isc.org>
Tue, 13 Apr 2004 04:49:01 +0000 (04:49 +0000)
decunix silence compiler warning.

lib/bind/include/netgroup.h
lib/bind/irs/getnetgrent_r.c

index 72003d4346909293e481b00215ba3586b7a8c1ef..2296208c156bc8aba6cbef11c60ab2569d90af3a 100644 (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
index ba76808e08d1c08d7b03723d371f4712c8e738fc..085867df728629e42039371153a1ce951e390eb4 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$Id: getnetgrent_r.c,v 1.5.2.2 2004/03/09 09:17:30 marka Exp $";
+static const char rcsid[] = "$Id: getnetgrent_r.c,v 1.5.2.3 2004/04/13 04:49:01 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