Skip to content

Commit

Permalink
ninfod: remove c++ style comments
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Kerola <[email protected]>
  • Loading branch information
kerolasa committed Jul 14, 2019
1 parent b572ac3 commit aed8db0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions ninfod/ni_ifaddrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@
#include "ni_ifaddrs.h"
#include <netinet/in.h>

//#define IFA_LOCAL IFA_LOCAL

/* ====================================================================== */
struct nlmsg_list {
struct nlmsg_list *nlm_next;
Expand Down
5 changes: 0 additions & 5 deletions ninfod/ninfod_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,16 @@ static struct subjinfo subjinfo_table [] = {
[IPUTILS_NI_ICMP6_SUBJ_IPV6] = {
.code = IPUTILS_NI_ICMP6_SUBJ_IPV6,
.name = "IPv6",
//.init = init_nodeinfo_ipv6addr,
.checksubj = pr_nodeinfo_ipv6addr,
},
[IPUTILS_NI_ICMP6_SUBJ_FQDN] = {
.code = IPUTILS_NI_ICMP6_SUBJ_FQDN,
.name = "FQDN",
//.init = init_nodeinfo_nodename,
.checksubj = pr_nodeinfo_nodename,
},
[IPUTILS_NI_ICMP6_SUBJ_IPV4] = {
.code = IPUTILS_NI_ICMP6_SUBJ_IPV4,
.name = "IPv4",
//.init = init_nodeinfo_ipv4addr,
.checksubj = pr_nodeinfo_ipv4addr,
},
};
Expand Down Expand Up @@ -252,7 +249,6 @@ int pr_nodeinfo_unknown(CHECKANDFILL_ARGS_1)
p->reply.ni_type = IPUTILS_NI_ICMP6_REPLY;
p->reply.ni_code = IPUTILS_NI_ICMP6_UNKNOWN;
p->reply.ni_cksum = 0;
//p->reply.ni_qtype = 0;
p->reply.ni_flags = flags;

p->replydata = NULL;
Expand All @@ -270,7 +266,6 @@ int pr_nodeinfo_refused(CHECKANDFILL_ARGS_1)
p->reply.ni_type = IPUTILS_NI_ICMP6_REPLY;
p->reply.ni_code = IPUTILS_NI_ICMP6_REFUSED;
p->reply.ni_cksum = 0;
//p->reply.ni_qtype = 0;
p->reply.ni_flags = flags;

p->replydata = NULL;
Expand Down
2 changes: 1 addition & 1 deletion ninfod/ninfod_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ static int compare_dnsname(const char *s, size_t slen,
if (n == n0 + nlen - 1) {
done = 1; /* FQDN */
} else if (n + 1 == n0 + nlen - 1) {
retcode = 1; // trunc
retcode = 1; /* trunc */
done = 1;
} else
return -1;
Expand Down

0 comments on commit aed8db0

Please sign in to comment.