#include <sys/stat.h>
#include <fcntl.h>
#include "ap-utils.h"
-#include "ap-curses.h"
extern WINDOW *main_sub;
varbinds[7].oid = oid_secLastErrorAddress;
varbinds[7].len_oid = sizeof(oid_secLastErrorAddress);
- if (snmp(varbinds, OID_NUM, GET) <= 0) {
+ if (snmp(varbinds, OID_NUM, GET) < OID_NUM) {
print_help(ERR_RET);
goto exit;
}
- print_title(_("Latest Events"));
+ print_top(NULL, _("Latest Events"));
mvwaddstr(main_sub, 1, 0, _("Disassociate:"));
sprintf(message, DESCR,
*varbinds[0].value,
print_help(ANY_KEY);
exit:
getch();
- print_title("");
+ print_top(NULL, NULL);
clear_main(0);
}