#include <stdlib.h>
#include <unistd.h>
#include "ap-utils.h"
-#include "ap-curses.h"
#include <menu.h>
#define RATES_RECORD "[%d] %02.1fM\t%s"
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;
}
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);
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:
exit:
getch();
quit:
- print_title("");
+ print_top(NULL, NULL);
clear_main(0);
}
-