From 1089015fcc3257dca9eac0b3319e242d95423973 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 4 Aug 2020 14:14:40 +0200 Subject: 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. --- executor/common_linux.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'executor/common_linux.h') 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)}; -- cgit mrf-deployment