mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user