mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
util/nvmutil: fix rlong static variables
whoops Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -989,10 +989,10 @@ hextonum(char ch_s)
|
|||||||
unsigned long
|
unsigned long
|
||||||
rlong(void)
|
rlong(void)
|
||||||
{
|
{
|
||||||
static unsigned long mix;
|
static unsigned long mix = 0;
|
||||||
static unsigned long counter;
|
static unsigned long counter = 0;
|
||||||
|
|
||||||
static int fd;
|
static int fd = -1;
|
||||||
|
|
||||||
struct x_st_timeval tv;
|
struct x_st_timeval tv;
|
||||||
|
|
||||||
@@ -1001,12 +1001,8 @@ rlong(void)
|
|||||||
|
|
||||||
rval = 0;
|
rval = 0;
|
||||||
|
|
||||||
fd = -1;
|
|
||||||
nr = -1;
|
nr = -1;
|
||||||
|
|
||||||
mix = 0;
|
|
||||||
counter = 0;
|
|
||||||
|
|
||||||
x_i_gettimeofday(&tv, NULL);
|
x_i_gettimeofday(&tv, NULL);
|
||||||
|
|
||||||
mix ^= (unsigned long)tv.tv_sec
|
mix ^= (unsigned long)tv.tv_sec
|
||||||
|
|||||||
Reference in New Issue
Block a user