0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-09-22 10:43:39 -04:00

Replaced str(n)casecmp with more standard str(n)icmp.

This commit is contained in:
Keith Kanios
2007-04-13 22:00:42 +00:00
parent c40f89e1c2
commit 2a3311b546

View File

@@ -568,7 +568,7 @@ static int32_t macho_section(char *name, int pass, int *bits)
while ((NULL != sectionAttributes) while ((NULL != sectionAttributes)
&& (currentAttribute = strtok((char*)&sectionAttributes, " \t"))) { && (currentAttribute = strtok((char*)&sectionAttributes, " \t"))) {
if (0 != *currentAttribute) { if (0 != *currentAttribute) {
if (0 == strncasecmp("align=", currentAttribute, 6)) { if (!(nasm_strnicmp("align=", currentAttribute, 6))) {
char *end; char *end;
int newAlignment, value; int newAlignment, value;
@@ -604,7 +604,7 @@ static int32_t macho_section(char *name, int pass, int *bits)
} }
s->align = newAlignment; s->align = newAlignment;
} else if (0 == strcasecmp("data", currentAttribute)) { } else if (!(nasm_stricmp("data", currentAttribute))) {
/* Do nothing; 'data' is implicit */ /* Do nothing; 'data' is implicit */
} else { } else {
error(ERR_PANIC, error(ERR_PANIC,