X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Frecvfrom.c;h=5edd1d8b1c9df7fe79ad87098f997b1b203fe8d4;hb=50901279d8e42ea4bccc2eef0a6b11e7c3dde4cf;hp=5da14ae0d4eedeb5cd2ea58aa647e63b79dab884;hpb=d4294edebdaa6e2be0fca254afacd42d074881bb;p=gnulib.git diff --git a/lib/recvfrom.c b/lib/recvfrom.c index 5da14ae0d..5edd1d8b1 100644 --- a/lib/recvfrom.c +++ b/lib/recvfrom.c @@ -1,6 +1,6 @@ /* recvfrom.c --- wrappers for Windows recvfrom function - Copyright (C) 2008-2009 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 @@ -28,9 +28,9 @@ #undef recvfrom -int -rpl_recvfrom (int fd, void *buf, int len, int flags, struct sockaddr *from, - int *fromlen) +ssize_t +rpl_recvfrom (int fd, void *buf, size_t len, int flags, struct sockaddr *from, + socklen_t *fromlen) { int frombufsize = (from != NULL ? *fromlen : 0); SOCKET sock = FD_TO_SOCKET (fd);