From 321d971b084a25c1543d7fe307859dd5bd544c82 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Tue, 20 Nov 2018 11:49:52 +0000 Subject: util: use standard name for strcmp() 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 2b7b7a502b8..fe0f857218f 100644 --- a/src/util/u_string.h +++ b/src/util/u_string.h @@ -140,6 +140,7 @@ util_strncat(char *dst, const char *src, size_t n) return dst; } +#define strcmp util_strcmp static inline int util_strcmp(const char *s1, const char *s2) { @@ -184,7 +185,6 @@ util_strncmp(const char *s1, const char *s2, size_t n) #define util_snprintf snprintf #define util_vasprintf vasprintf #define util_sprintf sprintf -#define util_strcmp strcmp #endif -- cgit v1.2.3