zephyr/samples/bluetooth
Michael Scott ca6a686495 net: correct in*_addr parameter of net_addr_pton()
Currently, the function accepts a struct sockaddr * but the code
immediately type casts this to either in_addr or in6_addr.  This is
incorrect behavior as the first field in a sockaddr is sa_family_t
and not address data.

So without special knowledge, a developer will use a sockaddr structure
as the parameter and then wonder why the address information isn't being
set correctly.

Let's change this parameter to void * which makes this function similar
to inet_pton().

Jira: ZEP-1616

Change-Id: I1fc9368da999d90feb07c03fac55dcc749d4eba6
Signed-off-by: Michael Scott <michael.scott@linaro.org>
2017-02-03 15:59:13 +02:00
..
beacon Bluetooth: samples: Use Kconfig DEVICE_NAME variable when possible 2017-01-28 08:43:41 +02:00
central doc: update bluetooth samples with pointers 2017-01-26 20:02:35 +00:00
central_hr doc: update bluetooth samples with pointers 2017-01-26 20:02:35 +00:00
eddystone Bluetooth: samples: Use Kconfig DEVICE_NAME variable when possible 2017-01-28 08:43:41 +02:00
gatt Bluetooth: samples: Use Kconfig DEVICE_NAME variable when possible 2017-01-28 08:43:41 +02:00
handsfree Bluetooth: Kconfig: Make device name variable generic 2017-01-28 08:43:41 +02:00
hci_uart doc: update bluetooth samples with pointers 2017-01-26 20:02:35 +00:00
hci_usb doc: update bluetooth samples with pointers 2017-01-26 20:02:35 +00:00
ipsp net: correct in*_addr parameter of net_addr_pton() 2017-02-03 15:59:13 +02:00
peripheral Bluetooth: samples: Use Kconfig DEVICE_NAME variable when possible 2017-01-28 08:43:41 +02:00
peripheral_csc Bluetooth: samples: Use Kconfig DEVICE_NAME variable when possible 2017-01-28 08:43:41 +02:00
peripheral_dis Bluetooth: samples: Use Kconfig DEVICE_NAME variable when possible 2017-01-28 08:43:41 +02:00
peripheral_esp Bluetooth: samples: Use Kconfig DEVICE_NAME variable when possible 2017-01-28 08:43:41 +02:00
peripheral_hids Bluetooth: samples: Use Kconfig DEVICE_NAME variable when possible 2017-01-28 08:43:41 +02:00
peripheral_hr Bluetooth: samples: Use Kconfig DEVICE_NAME variable when possible 2017-01-28 08:43:41 +02:00
peripheral_sc_only Bluetooth: samples: Use Kconfig DEVICE_NAME variable when possible 2017-01-28 08:43:41 +02:00
bluetooth.rst Bluetooth: Move Bluetooth docs to rst 2017-01-24 17:58:59 +00:00