]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Make fstrgrow non-static function
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 19 Apr 2016 13:13:41 +0000 (14:13 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 19 Apr 2016 13:13:41 +0000 (14:13 +0100)
src/libutil/fstring.c
src/libutil/fstring.h

index dcec28895cedacdf0a8e7f94e30e491c719b9a98..997dd6b46a0adfbc2b0a5bd4e7ca66d1f8d3ee80 100644 (file)
@@ -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;
index a4ff4e0ae880835ed566a0ae081a8aa9904c48e1..127557e402227e2a73a8de346e7526cb2ad8ac31 100644 (file)
@@ -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