From b229a3d39631b8124ed08ab34e17eb22a4f25d2f Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sat, 18 Dec 2021 08:46:35 +0900 Subject: [PATCH] sds: rename flb_sds_snprintf_realloc -> flb_sds_snprintf Signed-off-by: Takahiro Yamashita --- include/fluent-bit/flb_sds.h | 2 +- src/flb_sds.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fluent-bit/flb_sds.h b/include/fluent-bit/flb_sds.h index d5de15ade35..5665aff6612 100644 --- a/include/fluent-bit/flb_sds.h +++ b/include/fluent-bit/flb_sds.h @@ -108,6 +108,6 @@ flb_sds_t flb_sds_increase(flb_sds_t s, size_t len); flb_sds_t flb_sds_copy(flb_sds_t s, const char *str, int len); void flb_sds_destroy(flb_sds_t s); flb_sds_t flb_sds_printf(flb_sds_t *sds, const char *fmt, ...); -int flb_sds_snprintf_realloc(flb_sds_t *str, size_t size, const char *fmt, ...); +int flb_sds_snprintf(flb_sds_t *str, size_t size, const char *fmt, ...); #endif diff --git a/src/flb_sds.c b/src/flb_sds.c index 30f5158545f..fb99a63a6ef 100644 --- a/src/flb_sds.c +++ b/src/flb_sds.c @@ -409,10 +409,10 @@ void flb_sds_destroy(flb_sds_t s) } /* - * flb_sds_snprintf_realloc is a wrapper of snprintf. + * flb_sds_snprintf is a wrapper of snprintf. * The difference is that this function can increase the buffer of flb_sds_t. */ -int flb_sds_snprintf_realloc(flb_sds_t *str, size_t size, const char *fmt, ...) +int flb_sds_snprintf(flb_sds_t *str, size_t size, const char *fmt, ...) { va_list va; flb_sds_t tmp;