Enabling multithreaded compilation.
[debian/lxpanel.git] / src / plugins / netstat / wireless.c
index 6e33144..f2360fc 100644 (file)
@@ -41,7 +41,7 @@ static const char * iw_ie_key_mgmt_name[] = {
 };
 */
 
-void wireless_aplist_free(APLIST *aplist)
+void wireless_aplist_free(void *aplist, GObject *dummy)
 {
        APLIST *ptr;
        APLIST *delptr;
@@ -199,7 +199,7 @@ wireless_parse_scanning_event(struct iw_event *event, ap_info *oldinfo)
        if (event->cmd==SIOCGIWAP) {
                char buf[128];
                info = g_new0(ap_info, 1);
-               info->apaddr = g_strdup(iw_saether_ntop(&event->u.ap_addr, buf));
+               info->apaddr = g_strdup(iw_sawap_ntop(&event->u.ap_addr, buf));
                info->en_method = NS_WIRELESS_AUTH_OFF;
                info->haskey = FALSE;
                info->key_mgmt = NS_IW_IE_KEY_MGMT_NONE;
@@ -239,10 +239,9 @@ wireless_parse_scanning_event(struct iw_event *event, ap_info *oldinfo)
                {
                        int offset = 0;
                        int ielen = event->u.data.length;
-                       unsigned char *iebuf;
+                       unsigned char *iebuf = event->u.data.pointer;
 
                        while(offset <= (ielen - 2)) {
-                               iebuf = (event->u.data.pointer + offset);
                                /* check IE type */
                                switch(iebuf[offset]) {
                                        case 0xdd: /* WPA or else */