From 19b0aa3145e0d10e90ed60c3e5af91b2eacd7c13 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 17 Jun 2017 09:04:09 -0600 Subject: [PATCH] ieee802154 MAC: Fix a warning when compiled for a target with 64-bit addressing --- wireless/ieee802154/mac802154.c | 7 ++++--- wireless/ieee802154/mac802154_loopback.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/wireless/ieee802154/mac802154.c b/wireless/ieee802154/mac802154.c index 755cdc035e..127fe6bfd3 100644 --- a/wireless/ieee802154/mac802154.c +++ b/wireless/ieee802154/mac802154.c @@ -95,7 +95,7 @@ static void mac802154_purge_worker(FAR void *arg); /* Watchdog Timeout Functions */ -static void mac802154_timeout_expiry(int argc, uint32_t arg, ...); +static void mac802154_timeout_expiry(int argc, wdparm_t arg, ...); static uint32_t mac802154_symtoticks(FAR struct ieee802154_privmac_s *priv, uint32_t symbols); @@ -1271,7 +1271,8 @@ int mac802154_timerstart(FAR struct ieee802154_privmac_s *priv, /* Start the watchdog */ - wd_start(priv->timeout, (int32_t)ticks, mac802154_timeout_expiry, 1, (uint32_t)priv); + wd_start(priv->timeout, (int32_t)ticks, mac802154_timeout_expiry, + 1, (wdparm_t)priv); return OK; } @@ -1294,7 +1295,7 @@ int mac802154_timerstart(FAR struct ieee802154_privmac_s *priv, * ****************************************************************************/ -static void mac802154_timeout_expiry(int argc, uint32_t arg, ...) +static void mac802154_timeout_expiry(int argc, wdparm_t arg, ...) { FAR struct ieee802154_privmac_s *priv = (FAR struct ieee802154_privmac_s *)arg; diff --git a/wireless/ieee802154/mac802154_loopback.c b/wireless/ieee802154/mac802154_loopback.c index 2954019ceb..33bbb3f614 100644 --- a/wireless/ieee802154/mac802154_loopback.c +++ b/wireless/ieee802154/mac802154_loopback.c @@ -683,7 +683,7 @@ static int lo_ioctl(FAR struct net_driver_s *dev, int cmd, else if (cmd == MAC802154IOC_MLME_GET_REQUEST) { FAR struct ieee802154_get_req_s *getreq = &netmac->u.getreq; - + switch (getreq->attr) { case IEEE802154_ATTR_MAC_PANID: