]> git.decadent.org.uk Git - ap-utils.git/blobdiff - src/nwn_advanced.c
Update config.{sub,guess} in the right place at build time - closes: #534825
[ap-utils.git] / src / nwn_advanced.c
index 986baca0d2df39d30fe293f42ffed399ad365fd2..1bf7c0122140876fe7e51dc17e10ece095ae6eb8 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);
 
@@ -115,11 +114,13 @@ void advanced()
                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:
@@ -130,7 +131,6 @@ void advanced()
   exit:
     getch();
   quit:
-    print_title("");
+    print_top(NULL, NULL);
     clear_main(0);
 }
-