diff options
| author | Yang Tse <yangsita@gmail.com> | 2006-07-12 06:52:40 +0000 | 
|---|---|---|
| committer | Yang Tse <yangsita@gmail.com> | 2006-07-12 06:52:40 +0000 | 
| commit | 8272874704485b57da9c3b4ea9a2511f27cc8045 (patch) | |
| tree | 943b50deab29e548d80537278e992ff998261894 /lib | |
| parent | 86f4cead166a2c64d9b4b33432a9ca5ef92d70d8 (diff) | |
Place parenthesis surrounding macro parameters so that the use of sread and swrite is more intuitive.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/setup.h | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/setup.h b/lib/setup.h index cf7216ba0..ca822c396 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -246,11 +246,11 @@ typedef unsigned char bool;    Error: Missing definition of return and arguments types of recv().    /* */  #else -#define sread(x,y,z) (ssize_t)recv((RECV_TYPE_ARG1)x, (RECV_TYPE_ARG2)y, (RECV_TYPE_ARG3)z, (RECV_TYPE_ARG4)SEND_4TH_ARG) +#define sread(x,y,z) (ssize_t)recv((RECV_TYPE_ARG1)(x), (RECV_TYPE_ARG2)(y), (RECV_TYPE_ARG3)(z), (RECV_TYPE_ARG4)(SEND_4TH_ARG))  #endif  #else /* HAVE_RECV */  #ifdef DJGPP -#define sread(x,y,z) (ssize_t)read_s((int)x, (char *)y, (int)z) +#define sread(x,y,z) (ssize_t)read_s((int)(x), (char *)(y), (int)(z))  #endif   #endif /* HAVE_RECV */ @@ -265,11 +265,11 @@ typedef unsigned char bool;    Error: Missing definition of return and arguments types of send().    /* */  #else -#define swrite(x,y,z) (ssize_t)send((SEND_TYPE_ARG1)x, (SEND_TYPE_ARG2)y, (SEND_TYPE_ARG3)z, (SEND_TYPE_ARG4)SEND_4TH_ARG) +#define swrite(x,y,z) (ssize_t)send((SEND_TYPE_ARG1)(x), (SEND_TYPE_ARG2)(y), (SEND_TYPE_ARG3)(z), (SEND_TYPE_ARG4)(SEND_4TH_ARG))  #endif  #else /* HAVE_SEND */  #ifdef DJGPP -#define swrite(x,y,z) (ssize_t)write_s((int)x, (char *)y, (int)z) +#define swrite(x,y,z) (ssize_t)write_s((int)(x), (char *)(y), (int)(z))  #endif   #endif /* HAVE_SEND */  | 
