Skip to content

Commit a37dfda

Browse files
authored
Merge pull request #74 from bacnet-stack/chore/update-parameter-type-conform-const-char-api
refactor: change parameter type of bip_init and bip6_init functions to const char*
2 parents 631949b + 7c46a93 commit a37dfda

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

zephyr/subsys/bacnet_datalink/bip-init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ static int createSocket(struct sockaddr_in *sin)
626626
* @return True if the socket is successfully opened for BACnet/IP,
627627
* else False if the socket functions fail.
628628
*/
629-
bool bip_init(char *ifname)
629+
bool bip_init(const char *ifname)
630630
{
631631
int sock_fd;
632632
struct sockaddr_in sin = { 0 };

zephyr/subsys/bacnet_datalink/bip6-init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ void bip6_cleanup(void)
445445
* @return True if the socket is successfully opened for BACnet/IP,
446446
* else False if the socket functions fail.
447447
*/
448-
bool bip6_init(char *ifname)
448+
bool bip6_init(const char *ifname)
449449
{
450450
int status = -1;
451451
struct sockaddr_in6 server = { 0 };

0 commit comments

Comments
 (0)