[riot-notifications] [RIOT] xbee: make address length configurable (#3158)

Hauke Petersen notifications at github.com
Thu Jun 11 16:39:36 CEST 2015


> @@ -622,6 +648,9 @@ static int _set(ng_netdev_t *netdev, ng_netconf_opt_t opt,
>      switch (opt) {
>          case NETCONF_OPT_ADDRESS:
>              return _set_addr(dev, (uint8_t *)value, value_len);
> +        case NETCONF_OPT_ADDR_LEN:
> +        case NETCONF_OPT_SRC_LEN:
> +            return _set_addr_len(dev, value, value_len);

I would make the cast of `value` implicit here: `..., (uint16_t *)value, ...`

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3158/files#r32227325
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150611/ce89100a/attachment.html>


More information about the notifications mailing list