Fix param type
This commit is contained in:
@ -1300,7 +1300,7 @@ void capwap_interface_list(struct capwap_network* net, struct capwap_list* list)
|
||||
|
||||
|
||||
/* */
|
||||
char* capwap_printf_macaddress(char* buffer, unsigned char* macaddress, int type) {
|
||||
char* capwap_printf_macaddress(char* buffer, const unsigned char* macaddress, int type) {
|
||||
if (type == MACADDRESS_EUI48_LENGTH) {
|
||||
sprintf(buffer, "%02x:%02x:%02x:%02x:%02x:%02x", macaddress[0], macaddress[1], macaddress[2], macaddress[3], macaddress[4], macaddress[5]);
|
||||
} else if (type == MACADDRESS_EUI64_LENGTH) {
|
||||
|
Reference in New Issue
Block a user