]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: strfuncs - Move t_memdup() declaration to logical place in header
authorStephan Bosch <stephan.bosch@open-xchange.com>
Thu, 3 Oct 2024 21:02:42 +0000 (23:02 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 9 Oct 2025 08:41:22 +0000 (08:41 +0000)
Now it sits below a comment that doesn't apply to this function.

src/lib/strfuncs.h

index 899a13b20f0d61b37ca15a6c7ca07b6665c3dd8d..d1529337999eaa8e72f3e8ddf89910bc9878d6bb 100644 (file)
@@ -31,10 +31,10 @@ char *p_strconcat(pool_t pool, const char *str1, ...)
 /* same with temporary memory allocations: */
 const char *t_strdup(const char *str) ATTR_MALLOC;
 char *t_strdup_noconst(const char *str) ATTR_MALLOC;
+const void *t_memdup(const void *data, size_t size) ATTR_MALLOC;
 /* return NULL if str = "" */
 const char *t_strdup_empty(const char *str) ATTR_MALLOC;
 /* *end isn't included */
-const void *t_memdup(const void *data, size_t size) ATTR_MALLOC;
 const char *t_strdup_until(const void *start, const void *end)
        ATTR_MALLOC ATTR_RETURNS_NONNULL;
 const char *t_strndup(const void *str, size_t max_chars) ATTR_MALLOC;