X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Futils_subst.h;h=7807555cc09f3a5c52703a0668a99a7f3620894e;hp=50df9c7ba0404a377e2b3a0967f58adfe931b039;hb=7c9d772c992647fcba64a96800c146eb9f1647f8;hpb=21ab7512825cf8177d5eee5101344b45d0854610 diff --git a/src/daemon/utils_subst.h b/src/daemon/utils_subst.h index 50df9c7b..7807555c 100644 --- a/src/daemon/utils_subst.h +++ b/src/daemon/utils_subst.h @@ -66,19 +66,8 @@ * * The function returns 'buf' on success, NULL else. */ -char *subst (char *buf, size_t buflen, const char *string, size_t off1, size_t off2, - const char *replacement); - -/* - * asubst: - * - * This function is very similar to subst(). It differs in that it - * automatically allocates the memory required for the return value which the - * user then has to free himself. - * - * Returns the newly allocated result string on success, NULL else. - */ -char *asubst (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); /* * subst_string: @@ -96,10 +85,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 : */ -