aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-19 14:13:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-19 14:13:41 +0100
commit276df90bedc7aa1b20a8f29072ea85c955bb79d9 (patch)
tree529f8cbf232a056e086f8e8b230e7108913c7f86
parent78321a77304981ddbc15c92afdf311f89f3bcb74 (diff)
downloadrspamd-276df90bedc7aa1b20a8f29072ea85c955bb79d9.tar.gz
rspamd-276df90bedc7aa1b20a8f29072ea85c955bb79d9.zip
[Minor] Make fstrgrow non-static function
-rw-r--r--src/libutil/fstring.c4
-rw-r--r--src/libutil/fstring.h9
2 files changed, 10 insertions, 3 deletions
diff --git a/src/libutil/fstring.c b/src/libutil/fstring.c
index dcec28895..997dd6b46 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 a4ff4e0ae..127557e40 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