File tree Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ class InterfaceNanostack : public virtual NetworkInterface {
120120 virtual const char *get_mac_address ();
121121
122122 /* * @copydoc NetworkInterface::set_mac_address */
123- virtual nsapi_error_t set_mac_address (uint8_t *mac_addr, size_t addr_len);
123+ virtual nsapi_error_t set_mac_address (uint8_t *mac_addr, nsapi_size_t addr_len);
124124
125125 /* * Register callback for status reporting
126126 *
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ const char *InterfaceNanostack::get_mac_address()
258258 return NULL ;
259259}
260260
261- nsapi_error_t InterfaceNanostack::set_mac_address (uint8_t *mac_addr, size_t addr_len)
261+ nsapi_error_t InterfaceNanostack::set_mac_address (uint8_t *mac_addr, nsapi_size_t addr_len)
262262{
263263 return _interface->set_mac_address (mac_addr, addr_len);
264264}
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ const char *EMACInterface::get_mac_address()
107107 return nullptr ;
108108}
109109
110- nsapi_error_t EMACInterface::set_mac_address (uint8_t *mac_addr, size_t addr_len)
110+ nsapi_error_t EMACInterface::set_mac_address (uint8_t *mac_addr, nsapi_size_t addr_len)
111111{
112112 if (!mac_addr || addr_len != NSAPI_MAC_BYTES) {
113113 return NSAPI_ERROR_PARAMETER;
Original file line number Diff line number Diff line change @@ -99,7 +99,8 @@ class EMACInterface : public virtual NetworkInterface {
9999 */
100100 virtual const char *get_mac_address ();
101101
102- virtual nsapi_error_t set_mac_address (uint8_t *mac_addr, size_t addr_len);
102+ /* * @copydoc NetworkInterface::set_mac_address */
103+ virtual nsapi_error_t set_mac_address (uint8_t *mac_addr, nsapi_size_t addr_len);
103104
104105 /* * Get the local IP address
105106 *
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const char *NetworkInterface::get_mac_address()
3232 return 0 ;
3333}
3434
35- nsapi_error_t NetworkInterface::set_mac_address (uint8_t *mac_addr, size_t addr_len)
35+ nsapi_error_t NetworkInterface::set_mac_address (uint8_t *mac_addr, nsapi_size_t addr_len)
3636{
3737 return NSAPI_ERROR_UNSUPPORTED;
3838}
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ class NetworkInterface: public DNS {
116116 * @retval NSAPI_ERROR_PARAMETER if address is not valid
117117 * @retval NSAPI_ERROR_BUSY if address can't be set.
118118 */
119- virtual nsapi_error_t set_mac_address (uint8_t *mac_addr, size_t addr_len);
119+ virtual nsapi_error_t set_mac_address (uint8_t *mac_addr, nsapi_size_t addr_len);
120120
121121 /* * Get the local IP address
122122 *
You can’t perform that action at this time.
0 commit comments