X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ap-utils.git;a=blobdiff_plain;f=src%2Fnwn_advanced.c;h=1bf7c0122140876fe7e51dc17e10ece095ae6eb8;hp=986baca0d2df39d30fe293f42ffed399ad365fd2;hb=HEAD;hpb=09ed626f25fb3e7c57ad7a59e5261ea005aa498f diff --git a/src/nwn_advanced.c b/src/nwn_advanced.c index 986baca..1bf7c01 100644 --- a/src/nwn_advanced.c +++ b/src/nwn_advanced.c @@ -21,7 +21,6 @@ #include #include #include "ap-utils.h" -#include "ap-curses.h" #include #define RATES_RECORD "[%d] %02.1fM\t%s" @@ -46,7 +45,7 @@ void advanced() varbinds[1].oid = smtACKWindow; varbinds[1].len_oid = sizeof(smtACKWindow); print_help(WAIT_RET); - if (snmp(varbinds, 2, GET) <= 0) { + if (snmp(varbinds, 2, GET) < 2) { print_helperr(ERR_RET); goto exit; } @@ -63,7 +62,7 @@ void advanced() sprintf(message, _("[A] ACK Window: %d"), ackwindow); mvwaddstr(main_sub, 2, 0, message); - print_title(_("Advanced Options")); + print_top(NULL, _("Advanced Options")); print_help(_("DA - options; W - write conf; Q - quit to menu")); wrefresh(main_sub); @@ -115,11 +114,13 @@ void advanced() i++; } - print_help(WAIT_SET); - if (snmp(varbinds, i, SET) <= 0) { - print_helperr(ERR_SET); + print_help(WAIT_SET); + if (snmp(varbinds, i, SET) <= 0) { + print_helperr(ERR_SET); goto exit; - } + } + wbkgd(main_sub, A_NORMAL); + wrefresh(main_sub); print_help(DONE_SET); goto exit; default: @@ -130,7 +131,6 @@ void advanced() exit: getch(); quit: - print_title(""); + print_top(NULL, NULL); clear_main(0); } -