X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Futils_subst.c;h=546ca186f812fd4b5a672b20b0340d4e4bb4b039;hp=523534324649ea0f807fcf3208219e1ac723b12b;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=76fb10bf790e35dd6caca13c4bb5d0f86c517370 diff --git a/src/daemon/utils_subst.c b/src/daemon/utils_subst.c index 52353432..546ca186 100644 --- a/src/daemon/utils_subst.c +++ b/src/daemon/utils_subst.c @@ -119,7 +119,7 @@ char *subst_string(char *buf, size_t buflen, const char *string, if ((buf == NULL) || (string == NULL) || (needle == NULL) || (replacement == NULL)) - return (NULL); + return NULL; needle_len = strlen(needle); sstrncpy(buf, string, buflen); @@ -152,10 +152,10 @@ char *subst_string(char *buf, size_t buflen, const char *string, } if (i >= buflen) { - WARNING("subst_string: Loop exited after %zu iterations: " + WARNING("subst_string: Loop exited after %" PRIsz " iterations: " "string = %s; needle = %s; replacement = %s;", i, string, needle, replacement); } - return (buf); + return buf; } /* char *subst_string */