diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-07 13:18:54 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-07 13:18:54 +0000 |
| commit | 96cb52f21a4bc0c7ee8552833ac129c4d8a0c54e (patch) | |
| tree | 3ee88e8753caaeaff74df0b975859470e56bdd8e /util/nvmutil | |
| parent | c195e8cc2b8b9d9d47a11677e682ef0edee4adb3 (diff) | |
util/nvmutil: only have newrandom on linux/oldunix
these variables newrandom and oldrandom are unused on
BSD systems, and their unused status may trigger
warnings on some compilers.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index b6e28cfa..3a374e6c 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -113,9 +113,9 @@ static void set_err(int errval); */ #define items(x) (sizeof((x)) / sizeof((x)[0])) +#ifndef HAVE_ARC4RANDOM_BUF static const char newrandom[] = "/dev/urandom"; static const char oldrandom[] = "/dev/random"; /* fallback on OLD unix */ -#ifndef HAVE_ARC4RANDOM_BUF static const char *rname = NULL; #endif |
