Skip to content

Commit 9cfea3b

Browse files
committed
use util_strcasecmp instead of strcasecmp directly, pacth by Carlo Bramini
git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@45877 379a1393-f5fb-40a0-bcee-ef074d9b53f7
1 parent cd852e7 commit 9cfea3b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

vice/src/monitor/monitor.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,17 +411,17 @@ void monitor_vsync_hook(void)
411411
/* Some local helper functions */
412412
static int find_cpu_type_from_string(const char *cpu_string)
413413
{
414-
if ((strcasecmp(cpu_string, "6502") == 0) || (strcasecmp(cpu_string, "6510") == 0)) {
414+
if ((util_strcasecmp(cpu_string, "6502") == 0) || (util_strcasecmp(cpu_string, "6510") == 0)) {
415415
return CPU_6502;
416-
} else if (strcasecmp(cpu_string, "r65c02") == 0) {
416+
} else if (util_strcasecmp(cpu_string, "r65c02") == 0) {
417417
return CPU_R65C02;
418-
} else if (strcasecmp(cpu_string, "65816")==0) {
418+
} else if (util_strcasecmp(cpu_string, "65816")==0) {
419419
return CPU_65816;
420-
} else if (strcasecmp(cpu_string, "h6809") == 0 || strcmp(cpu_string, "6809") == 0) {
420+
} else if (util_strcasecmp(cpu_string, "h6809") == 0 || strcmp(cpu_string, "6809") == 0) {
421421
return CPU_6809;
422-
} else if (strcasecmp(cpu_string, "z80") == 0) {
422+
} else if (util_strcasecmp(cpu_string, "z80") == 0) {
423423
return CPU_Z80;
424-
} else if ((strcasecmp(cpu_string, "6502dtv") == 0) || (strcasecmp(cpu_string, "6510dtv") == 0)) {
424+
} else if ((util_strcasecmp(cpu_string, "6502dtv") == 0) || (util_strcasecmp(cpu_string, "6510dtv") == 0)) {
425425
return CPU_6502DTV;
426426
} else {
427427
return -1;

0 commit comments

Comments
 (0)