From e094d2e3e1216a9511087f4fe1fe0d0dbc10013d Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Mon, 26 Jul 2021 15:42:29 +0100 Subject: [PATCH] maint: avoid recent syntax-check issues * .gitignore: Cater for recently added poll module. * src/stdbuf.c: Avoid false positive from sc_prohibit_readlink. --- .gitignore | 1 + src/stdbuf.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e25f56db9b..d8d896b4fb 100644 --- a/.gitignore +++ b/.gitignore @@ -80,6 +80,7 @@ /lib/netinet/in.h /lib/parse-datetime-gen.h /lib/parse-datetime.c +/lib/poll.h /lib/printf.c /lib/pthread.h /lib/ref-add.sed diff --git a/src/stdbuf.c b/src/stdbuf.c index e8a0b6123f..dd39bd0868 100644 --- a/src/stdbuf.c +++ b/src/stdbuf.c @@ -129,7 +129,7 @@ and are thus unaffected by 'stdbuf' settings.\n\ /* argv[0] can be anything really, but generally it contains the path to the executable or just a name if it was executed using $PATH. In the latter case to get the path we can: - search getenv ("PATH"), readlink ("/prof/self/exe"), getenv ("_"), + search getenv("PATH"), readlink("/prof/self/exe"), getenv("_"), dladdr(), pstat_getpathname(), etc. */ static void -- 2.47.2