mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 15:56:41 +00:00
libc_noux & 64bit: fix printf format-warning
Normally for intptr_t the printf format PRIiPTR should be used. As Genode printf doens't support this format we cast it to long int (intptr_t is int for 32 bit and long int for 64 bit). ref #989
This commit is contained in:
parent
c2af646ad8
commit
cfd4310684
@ -261,7 +261,7 @@ extern "C" uid_t geteuid()
|
|||||||
void *sbrk(intptr_t increment)
|
void *sbrk(intptr_t increment)
|
||||||
{
|
{
|
||||||
if (verbose)
|
if (verbose)
|
||||||
PDBG("not implemented %d", increment);
|
PDBG("not implemented %ld", (long int)increment);
|
||||||
errno = ENOMEM;
|
errno = ENOMEM;
|
||||||
return reinterpret_cast<void *>(-1);
|
return reinterpret_cast<void *>(-1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user