mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 08:40:14 +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]))
|
#define items(x) (sizeof((x)) / sizeof((x)[0]))
|
||||||
|
|
||||||
|
#ifndef HAVE_ARC4RANDOM_BUF
|
||||||
static const char newrandom[] = "/dev/urandom";
|
static const char newrandom[] = "/dev/urandom";
|
||||||
static const char oldrandom[] = "/dev/random"; /* fallback on OLD unix */
|
static const char oldrandom[] = "/dev/random"; /* fallback on OLD unix */
|
||||||
#ifndef HAVE_ARC4RANDOM_BUF
|
|
||||||
static const char *rname = NULL;
|
static const char *rname = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user