syscall: Avoid a compiler warning which turns into a bug.
Simply cast the result to an int and life is good.
This commit is contained in:
parent
62c08a75ad
commit
678abbc364
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ umaskFunc(SyscallDesc *desc, int num, LiveProcess *process, ThreadContext *tc)
|
||||||
// changing anything.
|
// changing anything.
|
||||||
mode_t oldMask = umask(0);
|
mode_t oldMask = umask(0);
|
||||||
umask(oldMask);
|
umask(oldMask);
|
||||||
return oldMask;
|
return (int)oldMask;
|
||||||
}
|
}
|
||||||
|
|
||||||
SyscallReturn
|
SyscallReturn
|
||||||
|
|
Loading…
Reference in a new issue