From d9d29e0555e6a3bf33cc616693d98c982796201f Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 18 Nov 2012 15:57:59 +0000 Subject: [PATCH] More compiler quietening. --- src/src/auths/gsasl_exim.c | 3 ++- src/src/readconf.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/src/auths/gsasl_exim.c b/src/src/auths/gsasl_exim.c index aef337c44..8f7541642 100644 --- a/src/src/auths/gsasl_exim.c +++ b/src/src/auths/gsasl_exim.c @@ -29,7 +29,8 @@ sense in all contexts. For some, we can do checks at init time. #ifndef AUTH_GSASL /* dummy function to satisfy compilers when we link in an "empty" file. */ -static void dummy(int x) { dummy(x-1); } +static void dummy2(int x) { dummy2(x-1); } +static void dummy(int x) { dummy2(x-1); } #else #include diff --git a/src/src/readconf.c b/src/src/readconf.c index 454029c8e..dbec45de3 100644 --- a/src/src/readconf.c +++ b/src/src/readconf.c @@ -1549,7 +1549,7 @@ switch (type) { uschar sep = Ustrncmp(name, "headers_add", 11)==0 ? '\n' : ':'; saved_condition = *str_target; - strtemp = saved_condition + strlen((char *)saved_condition)-1; + strtemp = saved_condition + Ustrlen(saved_condition)-1; if (*strtemp == sep) *strtemp = 0; /* eliminate trailing list-sep */ strtemp = string_sprintf("%s%c%s", saved_condition, sep, sptr); *str_target = string_copy_malloc(strtemp); -- 2.25.1