summaryrefslogtreecommitdiff
path: root/src/shared/install-printf.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-12-12 16:45:33 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-12-12 16:45:33 +0100
commit303ee601513d64c23fcff0925894051c3baf0c50 (patch)
tree13eabdb12f75ea0405f223ca1d8b2585b571a89a /src/shared/install-printf.h
parent9be3c605706cd8430e330e9d16df372f5daccce2 (diff)
downloadsystemd-303ee601513d64c23fcff0925894051c3baf0c50.tar.gz
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).
Diffstat (limited to 'src/shared/install-printf.h')
-rw-r--r--src/shared/install-printf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/install-printf.h b/src/shared/install-printf.h
index 378b3bfd92..fa8ea7ef81 100644
--- a/src/shared/install-printf.h
+++ b/src/shared/install-printf.h
@@ -3,4 +3,4 @@
#include "install.h"
-int install_full_printf(UnitFileInstallInfo *i, const char *format, char **ret);
+int install_full_printf(const UnitFileInstallInfo *i, const char *format, char **ret);