aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_usb_netbsd.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_usb_netbsd.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_usb_netbsd.h')
-rw-r--r--executor/common_usb_netbsd.h12
1 files changed, 2 insertions, 10 deletions
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 <fcntl.h>
#include <sys/ioctl.h>
-/* -------------------------------------------------------------------------- */
-
-/*
- * 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))