From c1bbb0cee10bd321de664b8a8f24fbbf48aada05 Mon Sep 17 00:00:00 2001 From: Masashi Honma Date: Wed, 10 Mar 2010 23:33:10 +0200 Subject: [PATCH] NetBSD: Fix driver_bsd.c build On NetBSD 5.0.2, wpa_supplicant build results in messages below. ../src/drivers/driver_bsd.c: In function 'wpa_driver_bsd_get_ssid': ../src/drivers/driver_bsd.c:876: warning: passing argument 2 of 'bsd_get_ssid' from incompatible pointer type ../src/drivers/driver_bsd.c:876: warning: passing argument 3 of 'bsd_get_ssid' makes integer from pointer without a cast ../src/drivers/driver_bsd.c:876: error: too many arguments to function 'bsd_get_ssid' ../src/drivers/driver_bsd.c: In function 'wpa_driver_bsd_scan': ../src/drivers/driver_bsd.c:1125: warning: passing argument 2 of 'bsd_set_ssid' from incompatible pointer type ../src/drivers/driver_bsd.c:1125: warning: passing argument 3 of 'bsd_set_ssid' makes integer from pointer without a cast ../src/drivers/driver_bsd.c:1125: error: too many arguments to function 'bsd_set_ssid' gmake: *** [../src/drivers/driver_bsd.o] Error 1 This patch solves this issue. --- src/drivers/driver_bsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c index 47acbb91a..99de6c7ff 100644 --- a/src/drivers/driver_bsd.c +++ b/src/drivers/driver_bsd.c @@ -873,7 +873,7 @@ static int wpa_driver_bsd_get_ssid(void *priv, u8 *ssid) { struct bsd_driver_data *drv = priv; - return bsd_get_ssid(drv->ifname, drv, ssid, 0); + return bsd_get_ssid(drv, ssid, 0); } static int @@ -1121,7 +1121,7 @@ wpa_driver_bsd_scan(void *priv, struct wpa_driver_scan_params *params) return set80211var(drv, IEEE80211_IOC_SCAN_REQ, &sr, sizeof(sr)); #else /* IEEE80211_IOC_SCAN_MAX_SSID */ /* set desired ssid before scan */ - if (bsd_set_ssid(drv->ifname, drv, params->ssids[0].ssid, + if (bsd_set_ssid(drv, params->ssids[0].ssid, params->ssids[0].ssid_len) < 0) return -1;