aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 64b53b5e..1adc839d 100644
--- a/socket.c
+++ b/socket.c
@@ -1065,7 +1065,7 @@ int SockClose(int sock)
*/
static ssize_t cygwin_read(int sock, void *buf, size_t count)
{
- char *bp = buf;
+ char *bp = (char *)buf;
size_t n = 0;
if ((n = read(sock, bp, count)) == (size_t)-1)