OSDN Git Service

Update to v30-pre9
[android-x86/external-wireless-tools.git] / wireless_tools / iwspy.c
index 35f5db9..6e2fae2 100644 (file)
@@ -10,7 +10,7 @@
  *     Copyright (c) 1997-2004 Jean Tourrilhes <jt@hpl.hp.com>
  */
 
-#include "iwlib.h"             /* Header */
+#include "iwlib-private.h"             /* Private header */
 
 /************************* DISPLAY ROUTINES **************************/
 
@@ -75,7 +75,7 @@ print_spy_info(int    skfd,
   for(i = 0; i < n; i++)
     {
       /* Print stats for each address */
-      printf("    %s : ", iw_pr_ether(temp, hwa[i].sa_data));
+      printf("    %s : ", iw_saether_ntop(&hwa[i], temp));
       iw_print_stats(temp, sizeof(temp), &qual[i], &range, has_range);
       printf("%s\n", temp);
     }
@@ -357,7 +357,7 @@ main(int    argc,
        /* The device name must be the first argument */
        /* Name only : show spy list for that device only */
        if(argc == 2)
-         print_spy_info(skfd, argv[1], NULL, 0);
+         goterr = print_spy_info(skfd, argv[1], NULL, 0);
        else
          /* Special commands */
          if(!strcmp(argv[2], "setthr"))