X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ap-utils.git;a=blobdiff_plain;f=src%2Fnwn_advanced.c;fp=src%2Fnwn_advanced.c;h=1bf7c0122140876fe7e51dc17e10ece095ae6eb8;hp=db68a788d6c0d76504ed579ff7c304c9132aebb9;hb=1aac4ac30a9a0d6cd2182013d2b3fd48b65ed2fd;hpb=5c77e013a46530bb3650f61d768dfed0dd3b72cb diff --git a/src/nwn_advanced.c b/src/nwn_advanced.c index db68a78..1bf7c01 100644 --- a/src/nwn_advanced.c +++ b/src/nwn_advanced.c @@ -45,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; } @@ -114,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: @@ -132,4 +134,3 @@ void advanced() print_top(NULL, NULL); clear_main(0); } -