From 74320d6ccf97f8f377d878deff0069ea96768d20 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 20 Jan 2020 23:30:26 +0000 Subject: [PATCH] Fix build on Solaris 11 Compiler is picky about pointer signedness --- src/src/readconf.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/src/readconf.c b/src/src/readconf.c index 3644ab53e..ea28002ff 100644 --- a/src/src/readconf.c +++ b/src/src/readconf.c @@ -486,7 +486,7 @@ typedef struct syslog_fac_item { } syslog_fac_item; /* constants */ -static const char * const hidden = ""; +static const uschar * const hidden = US""; /* Static variables */ @@ -2443,9 +2443,9 @@ if (!ol) if (!f.admin_user && ol->type & opt_secure) { if (no_labels) - printf("%s\n", hidden); + printf("%s\n", CCS hidden); else - printf("%s = %s\n", name, hidden); + printf("%s = %s\n", name, CCS hidden); return TRUE; } @@ -2757,9 +2757,9 @@ if (!type) const uschar * s = nb->hide ? hidden : nb->string; found = TRUE; if (no_labels) - printf("%s\n", s); + printf("%s\n", CCS s); else - printf("%slist %s = %s\n", types[i], name+1, s); + printf("%slist %s = %s\n", types[i], name+1, CCS s); } if (!found) @@ -4472,11 +4472,11 @@ for (config_line_item * i = config_lines; i; i = i->next) if ((p = Ustrchr(current, '='))) { *p = '\0'; - printf("%*s%s= %s\n", indent, "", current, hidden); + printf("%*s%s= %s\n", indent, "", current, CCS hidden); } /* e.g.: hide split_spool_directory */ else - printf("%*s\n", indent, hidden); + printf("%*s\n", indent, CCS hidden); } else -- 2.30.2