summaryrefslogtreecommitdiff
path: root/soltools/mkdepend/main.c
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-21 11:52:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-21 17:11:15 +0200
commitec340697d682bd7d0a361c8c701e513329c032bd (patch)
tree97fddfce1e5cf6ad94fc32653b261a1668441ce0 /soltools/mkdepend/main.c
parent7a7cba91a60c1c6d6645dfb8c7e88c5c6318ddee (diff)
loplugin:constparams in soltools and various
Change-Id: I5e8e4a9a31aa7c3ff54cc7ce137d08770ea297e1 Reviewed-on: https://gerrit.libreoffice.org/40279 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'soltools/mkdepend/main.c')
-rw-r--r--soltools/mkdepend/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/soltools/mkdepend/main.c b/soltools/mkdepend/main.c
index 80aad85f5274..dcd86838f7da 100644
--- a/soltools/mkdepend/main.c
+++ b/soltools/mkdepend/main.c
@@ -525,7 +525,7 @@ void freefile(struct filepointer *fp)
free(fp);
}
-char *copy(char *str)
+char *copy(char const *str)
{
char *p = (char *)malloc(strlen(str) + 1);
@@ -533,7 +533,7 @@ char *copy(char *str)
return p;
}
-int match(char *str, char **list)
+int match(char const *str, char **list)
{
int i;
@@ -670,7 +670,7 @@ void fatalerr(char *msg, ...)
exit (1);
}
-void warning(char *msg, ...)
+void warning(char const *msg, ...)
{
#ifdef DEBUG_MKDEPEND
va_list args;
@@ -683,7 +683,7 @@ void warning(char *msg, ...)
#endif /* DEBUG_MKDEPEND */
}
-void warning1(char *msg, ...)
+void warning1(char const *msg, ...)
{
#ifdef DEBUG_MKDEPEND
va_list args;