diff options
author | Eric Blake <eblake@redhat.com> | 2011-04-28 15:24:46 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-04-28 15:27:43 -0600 |
commit | 7aa5e8dd3a8431c2354197961b3f2cd76864091f (patch) | |
tree | b9595e2d2063c9858ff193fccae1a31015a4b3e6 /ChangeLog | |
parent | d6d01fdde58da00d0d839711097e3acb83f61754 (diff) | |
download | gnulib-7aa5e8dd3a8431c2354197961b3f2cd76864091f.tar.gz |
getsockopt: avoid compiler warning
getsockopt.c: In function 'rpl_getsockopt':
getsockopt.c:51:7: warning: passing argument 4 of 'getsockopt' from
incompatible pointer type
c:\dev\msys_setup\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winsock2.h:543:32:
note: expected 'char *' but argument is of type 'int *'
A simple cast works around the mingw signature lameness. If only
they had picked void* instead of char*, like POSIX says...
* lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
Reported by Matthias Bolte.
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,5 +1,9 @@ 2011-04-28 Eric Blake <eblake@redhat.com> + getsockopt: avoid compiler warning + * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw. + Reported by Matthias Bolte. + tests: drop unused link dependency * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD. * modules/dirent-safer-tests (Makefile.am): Likewise. |