X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fstations.c;h=bb6ca9018cac9f347b8cce6ce4ea0ade72c3327e;hb=1aac4ac30a9a0d6cd2182013d2b3fd48b65ed2fd;hp=b37463e33a826fe37478861459181221673b56df;hpb=16204dfc7715783c2ebdfb55fc44fb9344613a76;p=ap-utils.git diff --git a/src/stations.c b/src/stations.c index b37463e..bb6ca90 100644 --- a/src/stations.c +++ b/src/stations.c @@ -82,7 +82,6 @@ void atmel_stations() mvwaddstr(main_sub, 1, 1, _("Not available (device not in AP mode).")); print_help(ANY_KEY); wrefresh(main_sub); - getch(); goto exit; } @@ -105,7 +104,6 @@ refresh: if (snmp(varbinds, 1, GET) <= 0) { print_helperr(ERR_RET); - getch(); goto exit; } @@ -131,7 +129,6 @@ refresh: if (snmp(varbinds, 1, SET) <= 0) { print_helperr(ERR_RET); - getch(); goto exit; } @@ -219,7 +216,7 @@ refresh: continue; case 'Q': case 'q': - goto exit; + goto quit; case 'T': case 't': if ((ap_type == ATMEL410 && ap_vendorext == SBRIDGES) || @@ -240,6 +237,8 @@ refresh: } exit: + getch(); +quit: while ((curr = first)) { first = curr->next; free(curr); @@ -414,4 +413,3 @@ void nwn_stations() print_top(NULL, NULL); clear_main(0); } -