Re: signature warnings on OSF/1 5.1

2010-12-20 Thread Simon Josefsson
Bruno Haible br...@clisp.org writes: * test-gethostname.c:24: warning: initialization from incompatible pointer type Similarly: - POSIX: int gethostname(char *, size_t); - OSF/1: int gethostname(char *, int); Likewise. * test-inet_ntop.c:24: warning: initialization from incompatible

Re: signature warnings on OSF/1 5.1

2010-12-20 Thread Bruno Haible
Hi Simon, * test-gethostname.c:24: warning: initialization from incompatible pointer type Similarly: - POSIX: int gethostname(char *, size_t); - OSF/1: int gethostname(char *, int); Likewise. * test-inet_ntop.c:24: warning: initialization from incompatible pointer type

signature warnings on OSF/1 5.1

2010-12-19 Thread Bruno Haible
On OSF/1 5.1 I'm also seeing these gcc warnings: * test-getaddrinfo.c:26: warning: initialization from incompatible pointer type This one is because the gai_strerror declaration is different from POSIX: - POSIX: const char *gai_strerror(int); - OSF/1: char *gai_strerror(int); I think