Skip to content

Commit

Permalink
sds: rename flb_sds_snprintf_realloc -> flb_sds_snprintf
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored and edsiper committed Dec 18, 2021
1 parent 34e9f82 commit b229a3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/fluent-bit/flb_sds.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions src/flb_sds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b229a3d

Please sign in to comment.