X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Futils_subst.h;h=a10b258902d3e4b0c61c34b30e3049508e415a34;hp=9085286a474c79da17428467e0865ae02bcb07f6;hb=1159cb5d383c55a80a0db100b8f7aadcf44740a5;hpb=b286b677bb54a3192a4121c2aa0857a133fd0603 diff --git a/src/daemon/utils_subst.h b/src/daemon/utils_subst.h index 9085286a..a10b2589 100644 --- a/src/daemon/utils_subst.h +++ b/src/daemon/utils_subst.h @@ -66,8 +66,8 @@ * * The function returns 'buf' on success, NULL else. */ -char *subst (char *buf, size_t buflen, const char *string, int off1, int off2, - const char *replacement); +char *subst(char *buf, size_t buflen, const char *string, size_t off1, + size_t off2, const char *replacement); /* * asubst: @@ -78,7 +78,7 @@ char *subst (char *buf, size_t buflen, const char *string, int off1, int off2, * * Returns the newly allocated result string on success, NULL else. */ -char *asubst (const char *string, int off1, int off2, const char *replacement); +char *asubst(const char *string, int off1, int off2, const char *replacement); /* * subst_string: @@ -96,10 +96,7 @@ char *asubst (const char *string, int off1, int off2, const char *replacement); * and the loop is broken. A warning is printed and the function returns * success. */ -char *subst_string (char *buf, size_t buflen, const char *string, - const char *needle, const char *replacement); +char *subst_string(char *buf, size_t buflen, const char *string, + const char *needle, const char *replacement); #endif /* UTILS_SUBST_H */ - -/* vim: set sw=4 ts=4 tw=78 noexpandtab : */ -