inet_ntop: Hide mismatch of declaration on NonStop Kernel.
authorBruno Haible <bruno@clisp.org>
Mon, 27 Dec 2010 00:27:33 +0000 (01:27 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 27 Dec 2010 00:30:49 +0000 (01:30 +0100)
* lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
_GL_CXXALIAS_SYS.
Reported by Joachim Schmitz <jojo@schmitz-digital.de>.

ChangeLog
lib/arpa_inet.in.h

index f66e1c4bc6485ea1d81a1c618ce61bd717860678..8de634744e8d6dd819ac4ad1a73c5210d4299f86 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-12-26  Bruno Haible  <bruno@clisp.org>
+
+       inet_ntop: Hide mismatch of declaration on NonStop Kernel.
+       * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
+       _GL_CXXALIAS_SYS.
+       Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
+
 2010-12-26  Bruno Haible  <bruno@clisp.org>
 
        inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
index d5cf2657128ed82b64eafef083481e73b926c11a..93e87f5d12ab7d33ea9f3a3a2741f4595037051b 100644 (file)
@@ -79,9 +79,11 @@ _GL_FUNCDECL_SYS (inet_ntop, const char *,
                    char *restrict dst, socklen_t cnt)
                   _GL_ARG_NONNULL ((2, 3)));
 # endif
-_GL_CXXALIAS_SYS (inet_ntop, const char *,
-                  (int af, const void *restrict src,
-                   char *restrict dst, socklen_t cnt));
+/* Need to cast, because on NonStop Kernel, the fourth parameter is
+                                            size_t cnt.  */
+_GL_CXXALIAS_SYS_CAST (inet_ntop, const char *,
+                       (int af, const void *restrict src,
+                        char *restrict dst, socklen_t cnt));
 _GL_CXXALIASWARN (inet_ntop);
 #elif defined GNULIB_POSIXCHECK
 # undef inet_ntop