diff options
author | Eric Engestrom <[email protected]> | 2018-11-20 11:48:38 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-07-19 22:39:38 +0100 |
commit | 88ddb2e18646344df215becb86e70453c55ab2cd (patch) | |
tree | fea5ef5890177cefc5052be41d31827f29fdb426 /src/util/u_string.h | |
parent | 27b9eea5575bd2a7c5e84b299a9ebb1e025beb25 (diff) |
util: use standard name for strncmp()
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 8d178031d8c..8c8ad5a5365 100644 --- a/src/util/u_string.h +++ b/src/util/u_string.h @@ -156,6 +156,7 @@ util_strcmp(const char *s1, const char *s2) return 0; } +#define strncmp util_strncmp static inline int util_strncmp(const char *s1, const char *s2, size_t n) { @@ -184,7 +185,6 @@ util_strncmp(const char *s1, const char *s2, size_t n) #define util_vasprintf vasprintf #define util_sprintf sprintf #define util_strcmp strcmp -#define util_strncmp strncmp #define util_strcasecmp strcasecmp #endif |