head 1.2; access; symbols pkgsrc-2020Q1:1.1.0.2 pkgsrc-2020Q1-base:1.1; locks; strict; comment @// @; 1.2 date 2020.06.14.11.45.06; author nia; state dead; branches; next 1.1; commitid Ihoj61fH79ixAbcC; 1.1 date 2020.03.26.02.35.31; author joerg; state Exp; branches; next ; commitid 058r63k5VyMu7R1C; desc @@ 1.2 log @emulators: remove vba, replaced by visualboyadvance-m etc @ text @$NetBSD: patch-src_GBA.cpp,v 1.1 2020/03/26 02:35:31 joerg Exp $ --- src/GBA.cpp.orig 2020-03-26 01:54:39.059748437 +0000 +++ src/GBA.cpp @@@@ -1130,7 +1130,7 @@@@ bool CPUWriteBMPFile(const char *fileNam bool CPUIsZipFile(const char * file) { if(strlen(file) > 4) { - char * p = strrchr(file,'.'); + const char * p = strrchr(file,'.'); if(p != NULL) { if(_stricmp(p, ".zip") == 0) @@@@ -1145,7 +1145,7 @@@@ bool CPUIsGBAImage(const char * file) { cpuIsMultiBoot = false; if(strlen(file) > 4) { - char * p = strrchr(file,'.'); + const char * p = strrchr(file,'.'); if(p != NULL) { if(_stricmp(p, ".gba") == 0) @@@@ -1169,7 +1169,7 @@@@ bool CPUIsGBAImage(const char * file) bool CPUIsGBABios(const char * file) { if(strlen(file) > 4) { - char * p = strrchr(file,'.'); + const char * p = strrchr(file,'.'); if(p != NULL) { if(_stricmp(p, ".gba") == 0) @@@@ -1189,7 +1189,7 @@@@ bool CPUIsGBABios(const char * file) bool CPUIsELF(const char *file) { if(strlen(file) > 4) { - char * p = strrchr(file,'.'); + const char * p = strrchr(file,'.'); if(p != NULL) { if(_stricmp(p, ".elf") == 0) @ 1.1 log @Deal with const issues. Do not put C headers into a namespace. @ text @d1 1 a1 1 $NetBSD$ @