mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
Replaced str(n)casecmp with more standard str(n)icmp.
This commit is contained in:
parent
c40f89e1c2
commit
2a3311b546
@ -568,7 +568,7 @@ static int32_t macho_section(char *name, int pass, int *bits)
|
||||
while ((NULL != sectionAttributes)
|
||||
&& (currentAttribute = strtok((char*)§ionAttributes, " \t"))) {
|
||||
if (0 != *currentAttribute) {
|
||||
if (0 == strncasecmp("align=", currentAttribute, 6)) {
|
||||
if (!(nasm_strnicmp("align=", currentAttribute, 6))) {
|
||||
char *end;
|
||||
int newAlignment, value;
|
||||
|
||||
@ -604,7 +604,7 @@ static int32_t macho_section(char *name, int pass, int *bits)
|
||||
}
|
||||
|
||||
s->align = newAlignment;
|
||||
} else if (0 == strcasecmp("data", currentAttribute)) {
|
||||
} else if (!(nasm_stricmp("data", currentAttribute))) {
|
||||
/* Do nothing; 'data' is implicit */
|
||||
} else {
|
||||
error(ERR_PANIC,
|
||||
|
Loading…
Reference in New Issue
Block a user