mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-06 11:21:22 +02:00
unposted: silence warnings on Cygwin
On Cygwin, h_name in struct hostent is 'const char*'
This commit is contained in:
parent
7276d04934
commit
4d7b34c5f3
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2017-03-10 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||
|
||||
* unposted: Src/Modules/tcp.c: silence compiler warnings on Cygwin
|
||||
|
||||
2017-03-09 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* Fabian Klotzl: 40808: Completion/Linux/Command/_mdadm,
|
||||
|
|
|
@ -343,7 +343,8 @@ bin_ztcp(char *nam, char **args, Options ops, UNUSED(int func))
|
|||
{
|
||||
int herrno, err=1, destport, force=0, verbose=0, test=0, targetfd=0;
|
||||
ZSOCKLEN_T len;
|
||||
char **addrp, *desthost, *localname, *remotename;
|
||||
char **addrp, *desthost;
|
||||
const char *localname, *remotename;
|
||||
struct hostent *zthost = NULL, *ztpeer = NULL;
|
||||
struct servent *srv;
|
||||
Tcp_session sess = NULL;
|
||||
|
|
Loading…
Reference in a new issue