aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-08-04 14:14:40 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-08-04 16:53:31 +0200
commit1089015fcc3257dca9eac0b3319e242d95423973 (patch)
treef14e38e4f45d5da9d42ecdc27b87eda3638fe07a /executor/common_linux.h
parent5ed76afa814812edaeaff2ea7b3227c18d5de5a6 (diff)
executor: remove block comments
1. We don't generally use /* */ block comments, few precedents we have are inconsistent with the rest of the code. 2. pkg/csource does not strip them from the resulting code. Remove the cases we have and add a test to prevent new ones being added.
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index c9620bfe4..d73f8a66a 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -606,7 +606,7 @@ static int netlink_devlink_id_get(struct nlmsg* nlmsg, int sock)
debug("netlink: failed to parse message for devlink family id\n");
return -1;
}
- recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); /* recv ack */
+ recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); // recv ack
return id;
}
@@ -820,7 +820,7 @@ static int netlink_wireguard_id_get(struct nlmsg* nlmsg, int sock)
debug("netlink: failed to parse message for wireguard family id\n");
return -1;
}
- recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); /* recv ack */
+ recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); // recv ack
return id;
}
@@ -841,11 +841,11 @@ static void netlink_wireguard_setup(void)
const uint16 listen_c = 20003;
const uint16 af_inet = AF_INET;
const uint16 af_inet6 = AF_INET6;
- /* Unused, but useful in case we change this:
- const struct sockaddr_in endpoint_a_v4 = {
- .sin_family = AF_INET,
- .sin_port = htons(listen_a),
- .sin_addr = {htonl(INADDR_LOOPBACK)}};*/
+ // Unused, but useful in case we change this:
+ // const struct sockaddr_in endpoint_a_v4 = {
+ // .sin_family = AF_INET,
+ // .sin_port = htons(listen_a),
+ // .sin_addr = {htonl(INADDR_LOOPBACK)}};
const struct sockaddr_in endpoint_b_v4 = {
.sin_family = AF_INET,
.sin_port = htons(listen_b),
@@ -858,11 +858,11 @@ static void netlink_wireguard_setup(void)
.sin6_family = AF_INET6,
.sin6_port = htons(listen_a)};
endpoint_a_v6.sin6_addr = in6addr_loopback;
- /* Unused, but useful in case we change this:
- const struct sockaddr_in6 endpoint_b_v6 = {
- .sin6_family = AF_INET6,
- .sin6_port = htons(listen_b)};
- endpoint_b_v6.sin6_addr = in6addr_loopback; */
+ // Unused, but useful in case we change this:
+ // const struct sockaddr_in6 endpoint_b_v6 = {
+ // .sin6_family = AF_INET6,
+ // .sin6_port = htons(listen_b)};
+ // endpoint_b_v6.sin6_addr = in6addr_loopback;
struct sockaddr_in6 endpoint_c_v6 = {
.sin6_family = AF_INET6,
.sin6_port = htons(listen_c)};