diff options
author | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2011-02-27 14:27:29 +0100 |
---|---|---|
committer | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2011-02-27 14:27:29 +0100 |
commit | 5b786ccb2a21937fcc6e1a29167db47f1d78abb5 (patch) | |
tree | 1b9c941769978a94b5476da1240674f1c3a382db /mactelnet.c | |
parent | e149992b6487bb41308a1893500e35bbe6d195c0 (diff) | |
download | MAC-Telnet-5b786ccb2a21937fcc6e1a29167db47f1d78abb5.tar.gz MAC-Telnet-5b786ccb2a21937fcc6e1a29167db47f1d78abb5.zip |
Code cleanup.
Diffstat (limited to 'mactelnet.c')
-rw-r--r-- | mactelnet.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mactelnet.c b/mactelnet.c index cb792ee..2dfe04c 100644 --- a/mactelnet.c +++ b/mactelnet.c @@ -135,8 +135,9 @@ static int send_udp(struct mt_packet *packet, int retransmit) { send_udp(packet, 0); } - if (terminal_mode) + if (terminal_mode) { reset_term(); + } fprintf(stderr, "\nConnection timed out\n"); exit(1); @@ -274,7 +275,7 @@ static int handle_packet(unsigned char *data, int data_len) { } } else if (pkthdr.ptype == MT_PTYPE_ACK) { - /* TODO: If we were resubmitting lost messages, stop resubmitting here if received counter is correct. */ + /* Handled elsewhere */ } /* The server wants to terminate the connection, we have to oblige */ @@ -381,8 +382,9 @@ int main (int argc, char **argv) { while (1) { c = getopt(argc, argv, "nt:u:p:vh?"); - if (c == -1) + if (c == -1) { break; + } switch (c) { |