about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2017-03-10 18:41:25 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2017-03-10 18:41:25 +0900
commit4d7b34c5f38062313a7a8bba36b1f64c1a18d387 (patch)
tree2c19402f98b33dd50e1b0a3d792fefca8764b46a
parent7276d04934192c0a9e32617f0c8c42d166dbdb52 (diff)
downloadzsh-4d7b34c5f38062313a7a8bba36b1f64c1a18d387.tar.gz
zsh-4d7b34c5f38062313a7a8bba36b1f64c1a18d387.tar.xz
zsh-4d7b34c5f38062313a7a8bba36b1f64c1a18d387.zip
unposted: silence warnings on Cygwin
On Cygwin, h_name in struct hostent is 'const char*'
-rw-r--r--ChangeLog4
-rw-r--r--Src/Modules/tcp.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b440f936e..233b0cca1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c
index dec12142b..0bbce5d49 100644
--- a/Src/Modules/tcp.c
+++ b/Src/Modules/tcp.c
@@ -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;