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>
{
char buf[1024];
debug_symbol_name(addr, buf, sizeof(buf));
- name = util_strdup(buf);
+ name = strdup(buf);
util_hash_table_set(symbols_hash, (void*)addr, (void*)name);
}
new_sym->next_with_same_name = sym;
new_sym->name = sym->name;
} else {
- new_sym->name = util_strdup(name);
+ new_sym->name = strdup(name);
if (new_sym->name == NULL) {
free(new_sym);
_mesa_error_no_memory(__func__);
sym->name = inner_sym->name;
} else {
- sym->name = util_strdup(name);
+ sym->name = strdup(name);
if (sym->name == NULL) {
free(sym);
_mesa_error_no_memory(__func__);
#define util_strcasecmp stricmp
-#define util_strdup _strdup
+#define strdup _strdup
#else
#define util_strncmp strncmp
#define util_strncat strncat
#define util_strcasecmp strcasecmp
-#define util_strdup strdup
#endif