From 27b9eea5575bd2a7c5e84b299a9ebb1e025beb25 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Tue, 20 Nov 2018 11:47:06 +0000 Subject: util: use standard name for strncat() Signed-off-by: Eric Engestrom Reviewed-by: Eric Anholt Reviewed-by: Emil Velikov Reviewed-by: Eric Anholt --- src/util/u_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/u_string.h') diff --git a/src/util/u_string.h b/src/util/u_string.h index cc97f58e02e..8d178031d8c 100644 --- a/src/util/u_string.h +++ b/src/util/u_string.h @@ -125,6 +125,7 @@ util_vasprintf(char **ret, const char *format, va_list ap) return util_vsnprintf(*ret, r + 1, format, ap); } +#define strncat util_strncat static inline char* util_strncat(char *dst, const char *src, size_t n) { @@ -184,7 +185,6 @@ util_strncmp(const char *s1, const char *s2, size_t n) #define util_sprintf sprintf #define util_strcmp strcmp #define util_strncmp strncmp -#define util_strncat strncat #define util_strcasecmp strcasecmp #endif -- cgit v1.2.3