diff options
author | Eric Engestrom <[email protected]> | 2018-11-20 11:59:28 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-07-19 22:39:38 +0100 |
commit | dffeaa55dd1155d7a1e8feb5ecfc54fff688fcd8 (patch) | |
tree | a232b3bef0f7251f90cd3a279674218c46a60d65 /src/util/u_string.h | |
parent | 00e23cd96998deae429508efa10545be13420379 (diff) |
util: use standard name for snprintf()
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/util/u_string.h')
-rw-r--r-- | src/util/u_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/u_string.h b/src/util/u_string.h index 846b64feb11..456de63d288 100644 --- a/src/util/u_string.h +++ b/src/util/u_string.h @@ -82,6 +82,7 @@ util_vsnprintf(char *str, size_t size, const char *format, va_list ap) return ret; } +#define snprintf util_snprintf static inline int PRINTFLIKE(3, 4) util_snprintf(char *str, size_t size, const char *format, ...) @@ -184,7 +185,6 @@ util_strncmp(const char *s1, const char *s2, size_t n) #else #define util_vsnprintf vsnprintf -#define util_snprintf snprintf #endif |