X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsendto.c;h=e301626dfb0b2f44e27c09a23e5735117ff59d65;hb=ae006b4;hp=888b0f62138d37e6ba5b2d5e79e1c1b20249a11d;hpb=11ee0e1340f95ccb9954e522f6e003b3125eb109;p=gnulib.git diff --git a/lib/sendto.c b/lib/sendto.c index 888b0f621..e301626df 100644 --- a/lib/sendto.c +++ b/lib/sendto.c @@ -1,6 +1,6 @@ /* sendto.c --- wrappers for Windows sendto 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 @@ -28,9 +28,9 @@ #undef sendto -int -rpl_sendto (int fd, const void *buf, int len, int flags, - struct sockaddr *to, int tolen) +ssize_t +rpl_sendto (int fd, const void *buf, size_t len, int flags, + const struct sockaddr *to, socklen_t tolen) { SOCKET sock = FD_TO_SOCKET (fd); int r = sendto (sock, buf, len, flags, to, tolen);