mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
Compare commits
2 Commits
c195e8cc2b
...
3148d31798
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3148d31798 | ||
|
|
96cb52f21a |
@@ -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
|
||||
|
||||
@@ -875,8 +875,10 @@ write_gbe_file_part(size_t p)
|
||||
static off_t
|
||||
gbe_file_offset(size_t p, const char *f_op)
|
||||
{
|
||||
off_t gbe_file_half_size = gbe_file_size >> 1;
|
||||
|
||||
return gbe_x_offset(p, f_op, "file",
|
||||
gbe_file_size >> 1, gbe_file_size);
|
||||
gbe_file_half_size, gbe_file_size);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user