]> git.decadent.org.uk Git - ap-utils.git/blobdiff - ap-gl/auth_mac.c
Imported Upstream version 1.5~pre1
[ap-utils.git] / ap-gl / auth_mac.c
index 80cac796bec852d17104ce55ca0e51c88a1839d9..edcd20f4ddd09b1e7cf0a59904174d34657f7c0f 100644 (file)
@@ -22,7 +22,6 @@
 #include <unistd.h>
 #include <string.h>
 #include "ap-utils.h"
-#include "ap-curses.h"
 
 #define MAX_LINES LINES-6
 #define PACKET_ERROR _("AuthorizedMacTableString packet error")
@@ -125,7 +124,7 @@ void atmel_auth_mac()
        print_helperr(ERR_RET);
        goto exit;
     }
-    print_title(MAC_TITLE);
+    print_top(NULL, MAC_TITLE);
 
     auth_mac = *(varbinds[0].value);
     memcpy(&radius_ip.s_addr, varbinds[1].value, 4);
@@ -197,7 +196,7 @@ void atmel_auth_mac()
 choose_view:
     clear_main(2);
     if (auth_mac == 1) {
-       mvwaddstr(main_sub, 2, 5, MAC_HEADER);
+       mvwaddstr(main_sub, 2, 1, MAC_HEADER);
        begin = 1;
        end = (MAX_LINES < mac_num) ? MAX_LINES : mac_num;
        scroll_rows(first, begin, end, 3, 0);
@@ -466,6 +465,6 @@ choose_view:
     }
     if (AuthMac)
        free(AuthMac);
-    print_title("");
+    print_top(NULL, NULL);
     clear_main(0);
 }