util: use standard name for strncmp()
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -1195,7 +1195,7 @@ hud_parse_env_var(struct hud_context *hud, struct pipe_screen *screen,
|
||||
boolean sort_items = false;
|
||||
const char *period_env;
|
||||
|
||||
if (util_strncmp(env, "simple,", 7) == 0) {
|
||||
if (strncmp(env, "simple,", 7) == 0) {
|
||||
hud->simple = true;
|
||||
env += 7;
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user