From: Vsevolod Stakhov Date: Tue, 19 Apr 2016 13:13:41 +0000 (+0100) Subject: [Minor] Make fstrgrow non-static function X-Git-Tag: 1.2.4~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=276df90bedc7aa1b20a8f29072ea85c955bb79d9;p=thirdparty%2Frspamd.git [Minor] Make fstrgrow non-static function --- diff --git a/src/libutil/fstring.c b/src/libutil/fstring.c index dcec28895c..997dd6b46a 100644 --- a/src/libutil/fstring.c +++ b/src/libutil/fstring.c @@ -21,8 +21,6 @@ static const gsize default_initial_size = 48; static const gsize max_grow = 1024 * 1024; #define fstravail(s) ((s)->allocated - (s)->len) -static rspamd_fstring_t * rspamd_fstring_grow (rspamd_fstring_t *str, - gsize needed_len) G_GNUC_WARN_UNUSED_RESULT; rspamd_fstring_t * rspamd_fstring_new (void) @@ -87,7 +85,7 @@ rspamd_fstring_free (rspamd_fstring_t *str) free (str); } -static rspamd_fstring_t * +rspamd_fstring_t * rspamd_fstring_grow (rspamd_fstring_t *str, gsize needed_len) { gsize newlen; diff --git a/src/libutil/fstring.h b/src/libutil/fstring.h index a4ff4e0ae8..127557e402 100644 --- a/src/libutil/fstring.h +++ b/src/libutil/fstring.h @@ -144,4 +144,13 @@ void rspamd_fstring_mapped_ftok_free (gpointer p); */ rspamd_ftok_t *rspamd_ftok_map (const rspamd_fstring_t *s); +/** + * Grow the specified fixed string + * @param str + * @param needed_len + * @return + */ +rspamd_fstring_t * rspamd_fstring_grow (rspamd_fstring_t *str, + gsize needed_len) G_GNUC_WARN_UNUSED_RESULT; + #endif