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_usb_netbsd.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'executor/common_usb_netbsd.h') diff --git a/executor/common_usb_netbsd.h b/executor/common_usb_netbsd.h index af73e19c4..78cf4ba98 100644 --- a/executor/common_usb_netbsd.h +++ b/executor/common_usb_netbsd.h @@ -11,11 +11,7 @@ #include #include -/* -------------------------------------------------------------------------- */ - -/* - * Redefinitions to match the linux types used in common_usb.h. - */ +// Redefinitions to match the linux types used in common_usb.h. struct usb_endpoint_descriptor { uint8 bLength; @@ -155,8 +151,6 @@ struct usb_qualifier_descriptor { #include "common_usb.h" -/* -------------------------------------------------------------------------- */ - static int vhci_open(void) { char path[1024]; @@ -211,8 +205,6 @@ static int vhci_usb_send(int fd, void* buf, size_t size) } } -/* -------------------------------------------------------------------------- */ - static volatile long syz_usb_connect_impl(uint64 speed, uint64 dev_len, const char* dev, const struct vusb_connect_descriptors* descs, lookup_connect_out_response_t lookup_connect_response_out) @@ -300,7 +292,7 @@ static volatile long syz_usb_connect_impl(uint64 speed, uint64 dev_len, if ((req.u.ctrl.bmRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD && req.u.ctrl.bRequest == USB_REQ_SET_CONFIGURATION) { - /* TODO: possibly revisit */ + // TODO: possibly revisit. } if (response_length > sizeof(data)) -- cgit mrf-deployment