refactor: use const char * instead of char * for inputs (#92)

fixes: "ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]"
This commit is contained in:
Carlos Gomes Martinho
2020-05-28 15:55:50 +02:00
committed by GitHub
parent 981d4036c8
commit 5efc16d3e4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ void address_mac_init(BACNET_MAC_ADDRESS *mac, uint8_t *adr, uint8_t len)
*
* @return true if the address was parsed
*/
bool address_mac_from_ascii(BACNET_MAC_ADDRESS *mac, char *arg)
bool address_mac_from_ascii(BACNET_MAC_ADDRESS *mac, const char *arg)
{
unsigned a[6] = { 0 }, p = 0;
uint16_t port = 0;