summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-01-20 23:30:26 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2020-01-20 23:30:26 +0000
commit74320d6ccf97f8f377d878deff0069ea96768d20 (patch)
tree082721361f0374d21fcf81686f009e47abd4fcb3
parent8c2a478b1f6f8c3fb43317c1e6729b23a3b972b7 (diff)
Fix build on Solaris 11
Compiler is picky about pointer signedness
-rw-r--r--src/src/readconf.c14
1 files 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 = "<value not displayable>";
+static const uschar * const hidden = US"<value not displayable>";
/* 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