From 8388be3ec7487ed43c4bf145dc31f486973bc711 Mon Sep 17 00:00:00 2001 From: Andres Amaya Garcia Date: Wed, 12 Jul 2017 14:00:03 +0100 Subject: [PATCH] Add brackets around net.c macro arguments --- library/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/net.c b/library/net.c index 5360c0742..b42b86f81 100644 --- a/library/net.c +++ b/library/net.c @@ -55,8 +55,8 @@ #endif #endif /* _MSC_VER */ -#define read(fd,buf,len) recv(fd,(char*)buf,(int) len,0) -#define write(fd,buf,len) send(fd,(char*)buf,(int) len,0) +#define read(fd,buf,len) recv( fd, (char*)( buf ), (int)( len ), 0 ) +#define write(fd,buf,len) send( fd, (char*)( buf ), (int)( len ), 0 ) #define close(fd) closesocket(fd) static int wsa_init_done = 0;