aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-06-25 15:43:52 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-06-25 13:58:54 +0000
commitdc5564eb36462b29de4a0dbf85ef9f91df2eecca (patch)
treebe71aec17a1289b7cba876dfec19d86bf6d1955f /executor/common.h
parent707e48e60aa33a49ef5c753466930f70227a7d21 (diff)
executor: prohibit malloc/calloc via linter
We include a number of C++ headers in the runnner. On FreeBSD some of them mention malloc, and our defines break the build. Use the style test to check only our files for these things.
Diffstat (limited to 'executor/common.h')
-rw-r--r--executor/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common.h b/executor/common.h
index 243d388c2..a38768536 100644
--- a/executor/common.h
+++ b/executor/common.h
@@ -53,7 +53,7 @@ typedef signed int ssize_t;
#endif
NORETURN void doexit(int status)
{
- _exit(status);
+ _exit(status); // prevent linter warning: doexit()
for (;;) {
}
}