From 5b786ccb2a21937fcc6e1a29167db47f1d78abb5 Mon Sep 17 00:00:00 2001 From: Håkon Nessjøen Date: Sun, 27 Feb 2011 14:27:29 +0100 Subject: Code cleanup. --- mactelnet.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mactelnet.c') 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) { -- cgit v1.2.3