unit: replace three non-type-safe macros by type-safe inline functions
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Nov 2018 11:27:39 +0000 (12:27 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 8 Nov 2018 12:55:25 +0000 (13:55 +0100)
commit6529ccfa20c53c63e4ed99a9119a2de267c746d5
treec891ac6c1cec85a45ca7eee3f0e9faf4cb87261c
parentabdcb688a8a82807cb5f864babdba91c859ac5f8
unit: replace three non-type-safe macros by type-safe inline functions

Behaviour is prett ymuch the same, but there's some additional type
checking done on the input parameters.

(In the case of UNIT_WRITE_FLAGS_NOOP() the C compiler won't actually do
the type checking necessarily, but static chckers at least could)
src/core/unit.h