mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
fix silly cast to work 64-bit
This commit is contained in:
parent
e46ab705df
commit
2b34bc770d
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ main(int argc, char *argv[])
|
||||||
v = mmap(0, length, PROT_READ | PROT_WRITE, MAP_SHARED,fd,nvram);
|
v = mmap(0, length, PROT_READ | PROT_WRITE, MAP_SHARED,fd,nvram);
|
||||||
fprintf(stderr, "mmap returns %p\n", v);
|
fprintf(stderr, "mmap returns %p\n", v);
|
||||||
|
|
||||||
if ( (int)v == -1)
|
if ( v == (void *) -1)
|
||||||
{
|
{
|
||||||
perror("mmap");
|
perror("mmap");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue