mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
utils: fix isPrivileged
This commit is contained in:
parent
8bd336b132
commit
c6559a5b83
2 changed files with 2 additions and 1 deletions
|
@ -104,6 +104,7 @@
|
|||
#define MIN(a, b) ({ __typeof__ (a) _a = (a); \
|
||||
__typeof__ (b) _b = (b); \
|
||||
_a < _b ? _a : _b; })
|
||||
#define MIN3(a, b, c) MIN(MIN((a), (b)), (c))
|
||||
|
||||
#ifndef offsetof
|
||||
#define offsetof(type, member) __builtin_offsetof(type, member)
|
||||
|
|
|
@ -380,7 +380,7 @@ bool isPrivileged() {
|
|||
|
||||
fclose(f);
|
||||
|
||||
return 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
} /* namespace utils */
|
||||
|
|
Loading…
Add table
Reference in a new issue