]> git.decadent.org.uk Git - ap-utils.git/blobdiff - src/nwn_advanced.c
Imported Upstream version 1.5~pre2
[ap-utils.git] / src / nwn_advanced.c
index 986baca0d2df39d30fe293f42ffed399ad365fd2..a41c1b58ef8b302229f0a8f1d3e769a9fa1b9d7c 100644 (file)
@@ -21,7 +21,6 @@
 #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"
@@ -46,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;
     }
@@ -63,7 +62,7 @@ void advanced()
     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);
 
@@ -130,7 +129,7 @@ void advanced()
   exit:
     getch();
   quit:
-    print_title("");
+    print_top(NULL, NULL);
     clear_main(0);
 }