aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_bsd.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_bsd.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_bsd.h')
-rw-r--r--executor/common_bsd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/common_bsd.h b/executor/common_bsd.h
index 54f58f49d..17306fb96 100644
--- a/executor/common_bsd.h
+++ b/executor/common_bsd.h
@@ -60,8 +60,8 @@ static int inject_fault(int nth)
fail("failed to open /dev/fault");
en.scope = FAULT_SCOPE_LWP;
- en.mode = 0 /* FAULT_MODE_NTH_ONESHOT */;
- en.nth = nth + 2 /* FAULT_NTH_MIN */;
+ en.mode = 0; // FAULT_MODE_NTH_ONESHOT
+ en.nth = nth + 2; //FAULT_NTH_MIN
if (ioctl(fd, FAULT_IOC_ENABLE, &en) != 0)
fail("FAULT_IOC_ENABLE failed with nth=%d", nth);