diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2002-05-14 17:52:50 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2002-05-14 17:52:50 +0000 |
| commit | 92e651c94081bce33cfd2c03e3231e0799a3e751 (patch) | |
| tree | f49003107e821a7d909eb355baea70d971d8ace3 /Src/Modules/tcp.c | |
| parent | 17161: Src/Modules/tcp.c: length parameter to accept() (diff) | |
| download | zsh-92e651c94081bce33cfd2c03e3231e0799a3e751.tar zsh-92e651c94081bce33cfd2c03e3231e0799a3e751.tar.gz zsh-92e651c94081bce33cfd2c03e3231e0799a3e751.tar.bz2 zsh-92e651c94081bce33cfd2c03e3231e0799a3e751.tar.lz zsh-92e651c94081bce33cfd2c03e3231e0799a3e751.tar.xz zsh-92e651c94081bce33cfd2c03e3231e0799a3e751.tar.zst zsh-92e651c94081bce33cfd2c03e3231e0799a3e751.zip | |
17162: Src/Modules/tcp.c: prevent warning on
gethostbyaddr() arguments.
Diffstat (limited to 'Src/Modules/tcp.c')
| -rw-r--r-- | Src/Modules/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c index c70d5bf69..78ce386db 100644 --- a/Src/Modules/tcp.c +++ b/Src/Modules/tcp.c @@ -565,12 +565,12 @@ bin_ztcp(char *nam, char **args, char *ops, int func) if (sess->fd != -1) { - zthost = gethostbyaddr(&(sess->sock.in.sin_addr), sizeof(struct sockaddr_in), AF_INET); + zthost = gethostbyaddr((const void *)&(sess->sock.in.sin_addr), sizeof(struct sockaddr_in), AF_INET); if (zthost) localname = zthost->h_name; else localname = ztrdup(inet_ntoa(sess->sock.in.sin_addr)); - ztpeer = gethostbyaddr(&(sess->peer.in.sin_addr), sizeof(struct sockaddr_in), AF_INET); + ztpeer = gethostbyaddr((const void *)&(sess->peer.in.sin_addr), sizeof(struct sockaddr_in), AF_INET); if (ztpeer) remotename = ztpeer->h_name; else |
