another batch of cppcheck error corrections
This commit is contained in:
@@ -37,8 +37,8 @@
|
||||
#if defined(ENB_MODE)
|
||||
# include "common/utils/LOG/log.h"
|
||||
# define SCTP_ERROR(x, args...) LOG_E(SCTP, x, ##args)
|
||||
# define SCTP_WARN(x, args...) LOG_W(SCTP, x, ##args)
|
||||
# define SCTP_DEBUG(x, args...) LOG_I(SCTP, x, ##args)
|
||||
# define SCTP_WARN(x, args...) LOG_W(SCTP, x, ##args)
|
||||
#else
|
||||
# define SCTP_ERROR(x, args...) do { fprintf(stderr, "[SCTP][E]"x, ##args); } while(0)
|
||||
# define SCTP_DEBUG(x, args...) do { fprintf(stdout, "[SCTP][D]"x, ##args); } while(0)
|
||||
|
||||
@@ -717,8 +717,7 @@ static int sctp_create_new_listener(
|
||||
SCTP_DEBUG("ipv4 addresses:\n");
|
||||
|
||||
for (i = 0; i < init_p->nb_ipv4_addr; i++) {
|
||||
SCTP_DEBUG("\t- "IPV4_ADDR"\n",
|
||||
IPV4_ADDR_FORMAT(init_p->ipv4_address[i]));
|
||||
SCTP_DEBUG("\t- "IPV4_ADDR"\n", IPV4_ADDR_FORMAT(init_p->ipv4_address[i]));
|
||||
ip4_addr = (struct sockaddr_in *)&addr[i];
|
||||
ip4_addr->sin_family = AF_INET;
|
||||
ip4_addr->sin_port = htons(init_p->port);
|
||||
|
||||
Reference in New Issue
Block a user