Fix param type
This commit is contained in:
parent
3dff1dc28b
commit
1a3e02ac50
@ -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) {
|
||||
|
@ -95,7 +95,7 @@ int capwap_address_from_string(const char* ip, struct sockaddr_storage* address)
|
||||
|
||||
int capwap_get_localaddress_by_remoteaddress(struct sockaddr_storage* local, struct sockaddr_storage* remote, char* oif, int ipv6dualstack);
|
||||
|
||||
char* capwap_printf_macaddress(char* buffer, unsigned char* macaddress, int type);
|
||||
char* capwap_printf_macaddress(char* buffer, const unsigned char* macaddress, int type);
|
||||
int capwap_scanf_macaddress(unsigned char* macaddress, const char* buffer, int type);
|
||||
|
||||
#endif /* __CAPWAP_NETWORK_HEADER__ */
|
||||
|
Loading…
Reference in New Issue
Block a user