# HG changeset patch # User Bruno Haible # Date 1293409653 -3600 # Node ID 4feba3a9f0b79624b3f80ac046861b34956d0f58 # Parent 3f2c77c8adb885c399ee9158ed98075607b162d9 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 . diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-12-26 Bruno Haible + + 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 . + 2010-12-26 Bruno Haible inet_ntop, inet_pton: Ensure declaration on NonStop Kernel. diff --git a/lib/arpa_inet.in.h b/lib/arpa_inet.in.h --- a/lib/arpa_inet.in.h +++ b/lib/arpa_inet.in.h @@ -79,9 +79,11 @@ 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