diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-04-01 16:50:50 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-04-01 16:50:50 +0100 |
| commit | 3d24aa98f9a38dc246afbf1fb23d3b99b03bea2b (patch) | |
| tree | e61ee3726ba83be541f3cb24560e79c02ff0f99e /util/libreboot-utils | |
| parent | ae5e74554a362937907a078b0930e9e943a1b67f (diff) | |
lbutils: remove more unused macros
detected via clang -Weverything
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils')
| -rw-r--r-- | util/libreboot-utils/lib/mkhtemp.c | 4 | ||||
| -rw-r--r-- | util/libreboot-utils/lib/rand.c | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/util/libreboot-utils/lib/mkhtemp.c b/util/libreboot-utils/lib/mkhtemp.c index 4e7f6013..461bb438 100644 --- a/util/libreboot-utils/lib/mkhtemp.c +++ b/util/libreboot-utils/lib/mkhtemp.c @@ -4,10 +4,6 @@ * Hardened mktemp (be nice to the demon). */ -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 700 -#endif - /* for openat2 / fast path: */ #ifdef __linux__ #if !defined(USE_OPENAT) || \ diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c index 02353560..249e2e6c 100644 --- a/util/libreboot-utils/lib/rand.c +++ b/util/libreboot-utils/lib/rand.c @@ -4,9 +4,6 @@ * Random number generation */ -#ifndef RAND_H -#define RAND_H - #if defined(USE_ARC4) && \ ((USE_ARC4) > 0) #define _DEFAULT_SOURCE 1 /* for arc4random on *linux* */ @@ -201,4 +198,3 @@ err: exitf("Randomisierungsfehler"); exit(EXIT_FAILURE); } -#endif |
