1
0
Fork 0
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:
Steffen Vogel 2021-11-25 07:17:58 -05:00
parent 8bd336b132
commit c6559a5b83
2 changed files with 2 additions and 1 deletions

View file

@ -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)

View file

@ -380,7 +380,7 @@ bool isPrivileged() {
fclose(f);
return 0;
return true;
}
} /* namespace utils */