aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-08-06 14:55:39 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-08-06 15:27:41 +0200
commitcb436c69d9bcb0330518a48559649c9436ed5e7a (patch)
tree1b1d474ad40b0748d3565c51938c1ed79b23f83e /executor/common_linux.h
parent56fe5665461fbbc19704e44c23e42d5f6ecb5361 (diff)
executor: add some code style checks
Move the test from pkg/csource to executor/ in order to be able to (1) run it on *.cc files, (2) run on unprocessed *.h files, (3) produce line numbers. Add a check for missed space after //.
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index 8c20101ec..b49e67542 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -2313,12 +2313,12 @@ error:
#include <string.h>
#include <sys/mount.h>
-//syz_mount_image(fs ptr[in, string[disk_filesystems]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts ptr[in, fs_options[vfat_options]])
-//fs_image_segment {
+// syz_mount_image(fs ptr[in, string[disk_filesystems]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts ptr[in, fs_options[vfat_options]])
+// fs_image_segment {
// data ptr[in, array[int8]]
// size len[data, intptr]
// offset intptr
-//}
+// }
static long syz_mount_image(volatile long fsarg, volatile long dir, volatile unsigned long size, volatile unsigned long nsegs, volatile long segments, volatile long flags, volatile long optsarg)
{
char loopname[64], fs[32], opts[256];