X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fnwn_latest.c;h=bfc7a522a400f3186f58c6d301e83012d30014c9;hb=16204dfc7715783c2ebdfb55fc44fb9344613a76;hp=56b02f26b99c6df8aa8c4f2ccbfbb59d68b22296;hpb=09ed626f25fb3e7c57ad7a59e5261ea005aa498f;p=ap-utils.git diff --git a/src/nwn_latest.c b/src/nwn_latest.c index 56b02f2..bfc7a52 100644 --- a/src/nwn_latest.c +++ b/src/nwn_latest.c @@ -23,7 +23,6 @@ #include #include #include "ap-utils.h" -#include "ap-curses.h" extern WINDOW *main_sub; @@ -81,12 +80,12 @@ void latest() 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, @@ -124,6 +123,6 @@ void latest() print_help(ANY_KEY); exit: getch(); - print_title(""); + print_top(NULL, NULL); clear_main(0); }