]> git.decadent.org.uk Git - ap-utils.git/blobdiff - src/nwn_latest.c
Update config.{sub,guess} in the right place at build time - closes: #534825
[ap-utils.git] / src / nwn_latest.c
index 56b02f26b99c6df8aa8c4f2ccbfbb59d68b22296..bfc7a522a400f3186f58c6d301e83012d30014c9 100644 (file)
@@ -23,7 +23,6 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #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);
 }