util: use standard name for snprintf()
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:
@@ -239,7 +239,7 @@ public:
|
||||
if (var->data.explicit_location &&
|
||||
var->data.location >= VARYING_SLOT_VAR0) {
|
||||
char location_str[11];
|
||||
util_snprintf(location_str, 11, "%d", var->data.location);
|
||||
snprintf(location_str, 11, "%d", var->data.location);
|
||||
|
||||
const struct hash_entry *entry =
|
||||
_mesa_hash_table_search(ht, location_str);
|
||||
@@ -265,7 +265,7 @@ public:
|
||||
* unsigned location value which is overkill but future proof.
|
||||
*/
|
||||
char location_str[11];
|
||||
util_snprintf(location_str, 11, "%d", var->data.location);
|
||||
snprintf(location_str, 11, "%d", var->data.location);
|
||||
_mesa_hash_table_insert(ht, ralloc_strdup(mem_ctx, location_str), var);
|
||||
} else {
|
||||
_mesa_hash_table_insert(ht,
|
||||
|
||||
Reference in New Issue
Block a user