diff options
author | Martin Pool <mbp@samba.org> | 2001-08-06 12:27:04 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2001-08-06 12:27:04 +0000 |
commit | ac2a1a449d04d27feb72a61ef0739bae1fb52f52 (patch) | |
tree | 80e9dacdadb7b5ff030137d3cf0ec831b39e28e5 /socket.c | |
parent | e1bd49d6f3f7a5793cc9cd06d57498ce976f81e0 (diff) | |
download | rsync-ac2a1a449d04d27feb72a61ef0739bae1fb52f52.tar.gz rsync-ac2a1a449d04d27feb72a61ef0739bae1fb52f52.tar.bz2 rsync-ac2a1a449d04d27feb72a61ef0739bae1fb52f52.zip |
Use socklen_t if defined, or otherwise int. This tries to fix
warnings on platforms (e.g. AIX) where this type is defined and not
int.
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -227,13 +227,14 @@ static int open_socket_in(int type, int port, struct in_addr *address) */ int is_a_socket(int fd) { - int v, l; + int v; + socklen_t l; l = sizeof(int); /* Parameters to getsockopt, setsockopt etc are very * unstandardized across platforms, so don't be surprised if - * there are compiler warnings on e.g. SCO OpenSwerver. It - * seems they all eventually get the right idea. + * there are compiler warnings on e.g. SCO OpenSwerver or AIX. + * It seems they all eventually get the right idea. * * Debian says: ``The fifth argument of getsockopt and * setsockopt is in reality an int [*] (and this is what BSD |