From 7d4c21b167d7ea6d3f7ebb515cd8db538daa1564 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 30 Jun 2009 23:26:03 +0000 Subject: [PATCH] - Fixed: SDL/i_system.cpp should use a return type for strrchr that has the same constness as its first parameter. (As some GCCs will actually check this, I guess.) SVN r1696 (trunk) --- src/sdl/i_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 395a6e4af..b24b2e04a 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -520,7 +520,7 @@ void *I_FindFirst (const char *filespec, findstate_t *fileinfo) { FString dir; - char *slash = strrchr (filespec, '/'); + const char *slash = strrchr (filespec, '/'); if (slash) { pattern = slash+1;