1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-11 08:21:13 +01:00

17249: fix user output from ztcp

This commit is contained in:
Peter Stephenson 2002-05-29 13:15:35 +00:00
parent d8d9181861
commit 7898d5b198
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2002-05-29 Peter Stephenson <pws@csr.com>
* 17249: Src/Modules/tcp.c: send output from `ztcp' or `ztcp -v'
to stdout, not the zle file descriptor.
2002-05-28 Oliver Kiddle <opk@zsh.org>
* 17245: Completion/Unix/Command/_texinfo: add handling for

View file

@ -461,7 +461,7 @@ bin_ztcp(char *nam, char **args, char *ops, int func)
setiparam("REPLY", sess->fd);
if (verbose)
fprintf(shout, "%d listener is on fd %d\n", ntohs(sess->sock.in.sin_port), sess->fd);
printf("%d listener is on fd %d\n", ntohs(sess->sock.in.sin_port), sess->fd);
return 0;
@ -553,7 +553,7 @@ bin_ztcp(char *nam, char **args, char *ops, int func)
setiparam("REPLY", sess->fd);
if (verbose)
fprintf(shout, "%d is on fd %d\n", ntohs(sess->peer.in.sin_port), sess->fd);
printf("%d is on fd %d\n", ntohs(sess->peer.in.sin_port), sess->fd);
}
else
{
@ -575,7 +575,7 @@ bin_ztcp(char *nam, char **args, char *ops, int func)
remotename = ztpeer->h_name;
else
remotename = ztrdup(inet_ntoa(sess->peer.in.sin_addr));
fprintf(shout, "%s:%d %s %s:%d is on fd %d%s\n",
printf("%s:%d %s %s:%d is on fd %d%s\n",
localname, ntohs(sess->sock.in.sin_port),
((sess->flags & ZTCP_LISTEN) ? "-<" :
((sess->flags & ZTCP_INBOUND) ? "<-" : "->")),
@ -649,7 +649,7 @@ bin_ztcp(char *nam, char **args, char *ops, int func)
setiparam("REPLY", sess->fd);
if (verbose)
fprintf(shout, "%s:%d is now on fd %d\n",
printf("%s:%d is now on fd %d\n",
desthost, destport, sess->fd);
}