]> git.decadent.org.uk Git - ap-utils.git/blobdiff - src/stations.c
Imported Upstream version 1.5
[ap-utils.git] / src / stations.c
index b37463e33a826fe37478861459181221673b56df..bb6ca9018cac9f347b8cce6ce4ea0ade72c3327e 100644 (file)
@@ -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);
 }
-