if(name == NULL)
break;
- char *ext = strrchr (name, '.');
+ const char *ext = strrchr (name, '.');
if ((ext == NULL) || (strcmp (ext, ".wad") != 0))
continue;
// (for instance when modifying the project settings)
void vfsShutdown ()
{
- wadFile_t *tmpptr;
-
while (g_wadFiles)
{
wadCleanup((wadFile_t *)g_wadFiles->data);
char *ptr,*lastptr;
lastptr = file->name;
- while (ptr = strchr(lastptr,'/'))
+ while ((ptr = strchr(lastptr,'/')) != NULL)
lastptr = ptr+1;
if (strcmp (lastptr, fixed) == 0)
const char* vfsBasePromptPath()
{
#ifdef _WIN32
- static char* path = "C:";
+ static const char* path = "C:";
#else
- static char* path = "/";
+ static const char* path = "/";
#endif
return path;
}