From: Holger Schemel Date: Fri, 23 Feb 2024 18:04:01 +0000 (+0100) Subject: replaced glib function calls to g_ascii_strup() X-Git-Tag: 4.4.0.0-test-1~297 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=2d15b436a68c78e7d443368ddea376c54519c59e;p=rocksndiamonds.git replaced glib function calls to g_ascii_strup() --- diff --git a/src/game_bd/bd_cave.c b/src/game_bd/bd_cave.c index b138a37b..1f757c86 100644 --- a/src/game_bd/bd_cave.c +++ b/src/game_bd/bd_cave.c @@ -282,7 +282,7 @@ void gd_cave_init(void) { char *key; - key = g_ascii_strup(gd_elements[i].filename, -1); + key = getStringToUpper(gd_elements[i].filename); if (hashtable_exists(name_to_element, key)) /* hash value may be 0 */ Warn("Name %s already used for element %x", key, i); @@ -322,7 +322,7 @@ void gd_cave_init(void) /* search the element database for the specified name, and return the element */ GdElement gd_get_element_from_string (const char *string) { - char *upper = g_ascii_strup(string, -1); + char *upper = getStringToUpper(string); void *value; boolean found;