s/stricmp/strcasesmp/

This commit is contained in:
Bill Currie 2001-02-21 22:03:25 +00:00
parent cd7fdf33d3
commit c6a37b31a4
3 changed files with 4 additions and 4 deletions

View file

@ -374,7 +374,7 @@ static void Draw_TextureMode_f (void)
for (i=0 ; i< 6 ; i++) for (i=0 ; i< 6 ; i++)
{ {
if (!stricmp (modes[i].name, Cmd_Argv(1) ) ) if (!strcasecmp (modes[i].name, Cmd_Argv(1) ) )
break; break;
} }
if (i == 6) if (i == 6)

View file

@ -474,7 +474,7 @@ void R_LoadSkys (char * skyname)
QFile *f; QFile *f;
char name[64]; char name[64];
if (stricmp (skyname, "none") == 0) if (strcasecmp (skyname, "none") == 0)
{ {
skyloaded = false; skyloaded = false;
return; return;

View file

@ -281,7 +281,7 @@ static int add_section(char *instring, long offset)
get_section_name(section,instring); get_section_name(section,instring);
// See if section already exists. // See if section already exists.
for (i=0;i<NUM_SECTION_BUFFERS;i++) for (i=0;i<NUM_SECTION_BUFFERS;i++)
if (stricmp(section,section_buffers[i].name)==0) if (strcasecmp(section,section_buffers[i].name)==0)
return(i); return(i);
// Increment current_section_buffer // Increment current_section_buffer
current_section_buffer++; current_section_buffer++;
@ -308,7 +308,7 @@ static void add_field(char *instring, int section, long offset)
// See if field already exists // See if field already exists
for (i=0;i<NUM_FIELD_BUFFERS;i++) for (i=0;i<NUM_FIELD_BUFFERS;i++)
if (field_buffers[i].section==section) if (field_buffers[i].section==section)
if (stricmp(field_buffers[i].name,field)==0) if (strcasecmp(field_buffers[i].name,field)==0)
return; return;
// Increment current_field_buffer // Increment current_field_buffer
current_field_buffer++; current_field_buffer++;