]> Kevux Git Server - fll/commit
Bugfix: Fix problems exposed by unit testing and perform cleanups.
authorKevin Day <thekevinday@gmail.com>
Mon, 10 Jan 2022 03:30:55 +0000 (21:30 -0600)
committerKevin Day <thekevinday@gmail.com>
Mon, 10 Jan 2022 03:30:55 +0000 (21:30 -0600)
commitc6d097ba60f7ae7bfbd6b704db07d60e269386f8
tree0e7b516bd1f185ad33931c5de2c7f6f439cb4499
parentc2bbe37359a0289cde100201132ede94870e9c39
Bugfix: Fix problems exposed by unit testing and perform cleanups.

f_capability_ambient_set() should not be testing for (!value_flag).

Te flags pointer test should be "flags" and not "*flags".

Explicitly cast capability to void * for cap_free().

Use "value" rather than "code" for "f_capability_value_t".

Expand out CAP_IS_SUPPORTED() and CAP_AMBIENT_SUPPORTED() to explicitly set F_true and F_false.
This is better than relying on the direct result of those macros.

Make sure f_type support "weak" compiler attributes.
Rename the compiler attributes to be more than just for visibility.

Correct the function ordering.
level_0/f_capability/c/capability.c
level_0/f_capability/c/capability.h
level_0/f_memory/tests/c/test-memory.h
level_0/f_type/c/type.h