aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-11-20 11:55:00 +0000
committerEric Engestrom <[email protected]>2019-07-19 22:39:38 +0100
commit59c2dd1b8c7582bdb7d9a70cacd86edd9609ccb5 (patch)
tree43d29c482c15e37d695cc539aec9a20c713505b4 /src/util
parent321d971b084a25c1543d7fe307859dd5bd544c82 (diff)
util: use standard name for sprintf()
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')
-rw-r--r--src/util/u_string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/u_string.h b/src/util/u_string.h
index fe0f857218f..d91293c3380 100644
--- a/src/util/u_string.h
+++ b/src/util/u_string.h
@@ -94,6 +94,7 @@ util_snprintf(char *str, size_t size, const char *format, ...)
return ret;
}
+#define sprintf util_sprintf
static inline void
PRINTFLIKE(2, 3)
util_sprintf(char *str, const char *format, ...)
@@ -184,7 +185,6 @@ util_strncmp(const char *s1, const char *s2, size_t n)
#define util_vsnprintf vsnprintf
#define util_snprintf snprintf
#define util_vasprintf vasprintf
-#define util_sprintf sprintf
#endif