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 {
120
120
virtual const char *get_mac_address ();
121
121
122
122
/* * @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);
124
124
125
125
/* * Register callback for status reporting
126
126
*
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ const char *InterfaceNanostack::get_mac_address()
258
258
return NULL ;
259
259
}
260
260
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)
262
262
{
263
263
return _interface->set_mac_address (mac_addr, addr_len);
264
264
}
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ const char *EMACInterface::get_mac_address()
107
107
return nullptr ;
108
108
}
109
109
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)
111
111
{
112
112
if (!mac_addr || addr_len != NSAPI_MAC_BYTES) {
113
113
return NSAPI_ERROR_PARAMETER;
Original file line number Diff line number Diff line change @@ -99,7 +99,8 @@ class EMACInterface : public virtual NetworkInterface {
99
99
*/
100
100
virtual const char *get_mac_address ();
101
101
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);
103
104
104
105
/* * Get the local IP address
105
106
*
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const char *NetworkInterface::get_mac_address()
32
32
return 0 ;
33
33
}
34
34
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)
36
36
{
37
37
return NSAPI_ERROR_UNSUPPORTED;
38
38
}
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ class NetworkInterface: public DNS {
116
116
* @retval NSAPI_ERROR_PARAMETER if address is not valid
117
117
* @retval NSAPI_ERROR_BUSY if address can't be set.
118
118
*/
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);
120
120
121
121
/* * Get the local IP address
122
122
*
You can’t perform that action at this time.
0 commit comments