From: Harlan Stenn Date: Sat, 20 Jan 2018 08:33:06 +0000 (-0800) Subject: When dumping restrict nodes, use const char * for address and mask X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ded2c0b355662f7519577b8e29a46d2c4356d230;p=thirdparty%2Fntp.git When dumping restrict nodes, use const char * for address and mask bk: 5a62fec2nNdb0YJtlahq9z2A_RHX6w --- diff --git a/ntpd/ntp_config.c b/ntpd/ntp_config.c index 7e56a36b9..a3796fe69 100644 --- a/ntpd/ntp_config.c +++ b/ntpd/ntp_config.c @@ -364,6 +364,9 @@ static u_int32 get_match(const char *, struct masks *); static u_int32 get_logmask(const char *); static int/*BOOL*/ is_refclk_addr(const address_node * addr); +static char * rflagstoa(u_short); +static char * rmflagstoa(u_short); + #ifndef SIM static int getnetnum(const char *num, sockaddr_u *addr, int complain, @@ -939,8 +942,8 @@ dump_config_tree( } } } else { - char *ap = rest_node->addr->address; - char *mp; + cons char *ap = rest_node->addr->address; + cons char *mp = ""; if (rest_node->mask) mp = rest_node->mask->address;