util: uid_t, gid_t, and pid_t must be 32bit

We already have assert_cc(sizeof(uid_t) == sizeof(uint32_t)) or friends
at various places.
This commit is contained in:
Yu Watanabe
2020-02-02 17:13:08 +01:00
committed by Lennart Poettering
parent c757517d98
commit 60d0a5098b
5 changed files with 9 additions and 34 deletions
-2
View File
@@ -572,10 +572,8 @@ static void test_pid_to_ptr(void) {
assert_se(PTR_TO_PID(PID_TO_PTR(INT16_MAX)) == INT16_MAX);
assert_se(PTR_TO_PID(PID_TO_PTR(INT16_MIN)) == INT16_MIN);
#if SIZEOF_PID_T >= 4
assert_se(PTR_TO_PID(PID_TO_PTR(INT32_MAX)) == INT32_MAX);
assert_se(PTR_TO_PID(PID_TO_PTR(INT32_MIN)) == INT32_MIN);
#endif
}
static void test_ioprio_class_from_to_string_one(const char *val, int expected) {