diff options
author | Peter Stephenson <pws@zsh.org> | 2015-10-29 15:01:07 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-10-29 15:01:07 +0000 |
commit | 0628802baf5c9245138db82dd058cad023a7d0ae (patch) | |
tree | bdbc600fe01ccbac2fb1b34814626a53f909c806 /Src/Modules/tcp.c | |
parent | 9640e9f497e8d78bf0bfa9defc4cfdeba1e7bfae (diff) | |
download | zsh-0628802baf5c9245138db82dd058cad023a7d0ae.tar.gz zsh-0628802baf5c9245138db82dd058cad023a7d0ae.tar.xz zsh-0628802baf5c9245138db82dd058cad023a7d0ae.zip |
37014: Improved internal parameter setting.
Enhance WARNCREATEGLOBAL to work in many more cases. Don't create REPLY as an integer if it didn't previously exist as one, even if the value to be set is integral, as this is likely to mess up later uses of REPLY.
Diffstat (limited to 'Src/Modules/tcp.c')
-rw-r--r-- | Src/Modules/tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c index 7b0dcc74a..9fc1b29a2 100644 --- a/Src/Modules/tcp.c +++ b/Src/Modules/tcp.c @@ -461,7 +461,7 @@ bin_ztcp(char *nam, char **args, Options ops, UNUSED(int func)) return 1; } - setiparam("REPLY", sess->fd); + setiparam_no_convert("REPLY", (zlong)sess->fd); if (verbose) printf("%d listener is on fd %d\n", ntohs(sess->sock.in.sin_port), sess->fd); @@ -562,7 +562,7 @@ bin_ztcp(char *nam, char **args, Options ops, UNUSED(int func)) sess->fd = rfd; } - setiparam("REPLY", sess->fd); + setiparam_no_convert("REPLY", (zlong)sess->fd); if (verbose) printf("%d is on fd %d\n", ntohs(sess->peer.in.sin_port), sess->fd); @@ -681,7 +681,7 @@ bin_ztcp(char *nam, char **args, Options ops, UNUSED(int func)) } } - setiparam("REPLY", sess->fd); + setiparam_no_convert("REPLY", (zlong)sess->fd); if (verbose) printf("%s:%d is now on fd %d\n", |