From cb436c69d9bcb0330518a48559649c9436ed5e7a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 6 Aug 2020 14:55:39 +0200 Subject: 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 //. --- executor/common_linux.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'executor/common_linux.h') 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 #include -//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]; -- cgit mrf-deployment