X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fgetsockname.c;h=1eabd9496118d2a154a54ddc76d4adf317a29c37;hb=ddf6704b29173e809f3b0150c015ca282e06388f;hp=97b8e8cfe0b45b13cd8c56eb5fceb22583df20ec;hpb=11ee0e1340f95ccb9954e522f6e003b3125eb109;p=gnulib.git diff --git a/lib/getsockname.c b/lib/getsockname.c index 97b8e8cfe..1eabd9496 100644 --- a/lib/getsockname.c +++ b/lib/getsockname.c @@ -1,6 +1,6 @@ /* getsockname.c --- wrappers for Windows getsockname function - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,7 +29,7 @@ #undef getsockname int -rpl_getsockname (int fd, struct sockaddr *addr, int *addrlen) +rpl_getsockname (int fd, struct sockaddr *addr, socklen_t *addrlen) { SOCKET sock = FD_TO_SOCKET (fd); int r = getsockname (sock, addr, addrlen);