getsockopt: avoid compiler warning
authorEric Blake <eblake@redhat.com>
Thu, 28 Apr 2011 21:24:46 +0000 (15:24 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 28 Apr 2011 21:27:43 +0000 (15:27 -0600)
commit7aa5e8dd3a8431c2354197961b3f2cd76864091f
treeb9595e2d2063c9858ff193fccae1a31015a4b3e6
parentd6d01fdde58da00d0d839711097e3acb83f61754
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>
ChangeLog
lib/getsockopt.c