From: Stephan Bosch Date: Thu, 3 Oct 2024 21:02:42 +0000 (+0200) Subject: lib: strfuncs - Move t_memdup() declaration to logical place in header X-Git-Tag: 2.4.2~352 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66c52687d51aa9d5b401244711686f7b351ae79c;p=thirdparty%2Fdovecot%2Fcore.git lib: strfuncs - Move t_memdup() declaration to logical place in header Now it sits below a comment that doesn't apply to this function. --- diff --git a/src/lib/strfuncs.h b/src/lib/strfuncs.h index 899a13b20f..d152933799 100644 --- a/src/lib/strfuncs.h +++ b/src/lib/strfuncs.h @@ -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;