aboutsummaryrefslogtreecommitdiffstats
path: root/tcp.c
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2005-03-21 18:49:34 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2005-03-21 18:49:34 (GMT)
commitabe994ae16b892106e0b36d7be5bfd7e1100075c (patch)
treebe899fbb5d23e280ca8ce17b1bf2da4d9afe0f28 /tcp.c
parentcb2555e19237930a25989a7cd2bee4589f1d515d (diff)
downloadpowwow-abe994ae16b892106e0b36d7be5bfd7e1100075c.zip
powwow-abe994ae16b892106e0b36d7be5bfd7e1100075c.tar.gz
powwow-abe994ae16b892106e0b36d7be5bfd7e1100075c.tar.bz2
Internally renamed some option flags to match their #opt counterparts:
echo_int => opt_info echo_key => opt_keyecho echo_ext => opt_echo As per the 1.2.6-dain patch
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tcp.c b/tcp.c
index 31c90c0..a6ae2f0 100644
--- a/tcp.c
+++ b/tcp.c
@@ -150,12 +150,12 @@ int tcp_connect __P2 (char *,addr, int,port)
address.sin_family = AF_INET;
else
{
- if (echo_int)
+ if (opt_info)
tty_printf("#looking up %s... ", addr);
tty_flush();
host_info = gethostbyname(addr);
if (host_info == 0) {
- if (!echo_int) {
+ if (!opt_info) {
tty_printf("#looking up %s... ", addr);
}
tty_printf("unknown host!\n");
@@ -164,7 +164,7 @@ int tcp_connect __P2 (char *,addr, int,port)
memmove((char *)&address.sin_addr, host_info->h_addr,
host_info->h_length);
address.sin_family = host_info->h_addrtype;
- if (echo_int)
+ if (opt_info)
tty_puts("found.\n");
}
address.sin_port = htons(port);
@@ -815,7 +815,7 @@ void tcp_open __P4 (char *,id, char *,initstring, char *,host, int,port)
FD_SET(newtcp_fd, &fdset); /* add socket to select() set */
tcp_count++;
- if (echo_int && tcp_count) {
+ if (opt_info && tcp_count) {
PRINTF("#default connection is now \"%s\"\n", id);
}
tcp_set_main(tcp_fd = newtcp_fd);
@@ -926,7 +926,7 @@ void tcp_togglesnoop __P1 (char *,id)
sfd = tcp_find(id);
if (sfd>=0) {
CONN_LIST(sfd).flags ^= ACTIVE;
- if (echo_int) {
+ if (opt_info) {
PRINTF("#connection %s is now %sactive.\n",
CONN_LIST(sfd).id, CONN_LIST(sfd).flags & ACTIVE ? "" : "non");
}
@@ -1010,7 +1010,7 @@ void tcp_spawn __P2 (char *,id, char *,cmd)
if (conn_max_index <= i)
conn_max_index = i+1;
- if (echo_int) {
+ if (opt_info) {
PRINTF("#successfully spawned \"%s\" with pid %d\n", id, childpid);
}