From 5e4ba08522668e467368c5af5940550b858bf2f8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 27 Dec 2010 01:27:33 +0100 Subject: [PATCH] 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 . --- ChangeLog | 7 +++++++ lib/arpa_inet.in.h | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f66e1c4bc..8de634744 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 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. * lib/arpa_inet.in.h: On NonStop Kernel, include also . * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise. diff --git a/lib/arpa_inet.in.h b/lib/arpa_inet.in.h index d5cf26571..93e87f5d1 100644 --- a/lib/arpa_inet.in.h +++ b/lib/arpa_inet.in.h @@ -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 -- 2.11.0