]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/cgroup.h
Mark *data and *userdata params to specifier_printf() as const
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 12 Dec 2018 15:45:33 +0000 (16:45 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 12 Dec 2018 15:45:33 +0000 (16:45 +0100)
commit303ee601513d64c23fcff0925894051c3baf0c50
tree13eabdb12f75ea0405f223ca1d8b2585b571a89a
parent9be3c605706cd8430e330e9d16df372f5daccce2
Mark *data and *userdata params to specifier_printf() as const

It would be very wrong if any of the specfier printf calls modified
any of the objects or data being printed. Let's mark all arguments as const
(primarily to make it easier for the reader to see where modifications cannot
occur).
src/core/cgroup.c
src/core/cgroup.h
src/core/unit-printf.c
src/core/unit.c
src/core/unit.h
src/resolve/resolved-dnssd.c
src/shared/install-printf.c
src/shared/install-printf.h
src/shared/specifier.c
src/shared/specifier.h
src/tmpfiles/tmpfiles.c