summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-03-20 11:21:20 +0100
committercgzones <cgzones@googlemail.com>2021-03-21 21:49:04 +0100
commit57e0ce7b4ffce8cf41bd3003831198d0bb38ebf2 (patch)
treefb8d84bb5068ba69535ce759766ab498916894d4 /CRT.c
parent1cb3aee07a5be99dff3407ff9b5de0d63b330177 (diff)
Use `#if defined()` syntax when `#elif defined()` is present
This prefers the `#if defined()` syntax over the `#ifdef` variant whenever there's also a `#elif defined()` clause, thus making the multiple branching structure more obvious and the overall use more consistent.
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CRT.c b/CRT.c
index 257da167..9565e10a 100644
--- a/CRT.c
+++ b/CRT.c
@@ -669,7 +669,7 @@ static int stderrRedirectNewFd = -1;
static int stderrRedirectBackupFd = -1;
static int createStderrCacheFile(void) {
-#ifdef HAVE_MEMFD_CREATE
+#if defined(HAVE_MEMFD_CREATE)
return memfd_create("htop.stderr-redirect", 0);
#elif defined(O_TMPFILE)
return open("/tmp", O_TMPFILE | O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR);

© 2014-2024 Faster IT GmbH | imprint | privacy policy