summaryrefslogtreecommitdiff
path: root/lib/recv.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-03-07 19:54:54 +0100
committerBruno Haible <bruno@clisp.org>2010-03-07 19:57:24 +0100
commit9d9884325418a9298e6ed18383f0175ed885ffa3 (patch)
treef1b5ba875053a7af87562a0e3ced1c31fd61f533 /lib/recv.c
parentca9097cba889d3b0742d5c55a059b4592136893d (diff)
downloadgnulib-9d9884325418a9298e6ed18383f0175ed885ffa3.tar.gz
Use POSIX declarations for socket functions.
Diffstat (limited to 'lib/recv.c')
-rw-r--r--lib/recv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/recv.c b/lib/recv.c
index 73e2a11d30..cd93cbc120 100644
--- a/lib/recv.c
+++ b/lib/recv.c
@@ -1,6 +1,6 @@
/* recv.c --- wrappers for Windows recv function
- Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2008-2010 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,8 +28,8 @@
#undef recv
-int
-rpl_recv (int fd, void *buf, int len, int flags)
+ssize_t
+rpl_recv (int fd, void *buf, size_t len, int flags)
{
SOCKET sock = FD_TO_SOCKET (fd);
int r = recv (sock, buf, len, flags);