diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-10-16 16:21:56 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-10-16 16:21:56 +0200 |
commit | a2262bcafa182672a383b469bff36c905803465d (patch) | |
tree | ccfc04a02bea5d1cb351f5e0d996745f475df174 /src/core/unit-printf.h | |
parent | c8966bffdd9ad4ef7dcec89e0cc8d43529ef2aed (diff) | |
download | systemd-a2262bcafa182672a383b469bff36c905803465d.tar.gz |
core: mark unit_*_printf() functions as taking a const Unit*
They should never modify the unit argument, let's make this clear.
Also see 303ee60151.
Diffstat (limited to 'src/core/unit-printf.h')
-rw-r--r-- | src/core/unit-printf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/unit-printf.h b/src/core/unit-printf.h index f3dae159d5..cb75448ae5 100644 --- a/src/core/unit-printf.h +++ b/src/core/unit-printf.h @@ -3,5 +3,5 @@ #include "unit.h" -int unit_name_printf(Unit *u, const char* text, char **ret); -int unit_full_printf(Unit *u, const char *text, char **ret); +int unit_name_printf(const Unit *u, const char* text, char **ret); +int unit_full_printf(const Unit *u, const char *text, char **ret); |