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:
@@ -568,7 +568,7 @@ static int32_t macho_section(char *name, int pass, int *bits)
|
|||||||
while ((NULL != sectionAttributes)
|
while ((NULL != sectionAttributes)
|
||||||
&& (currentAttribute = strtok((char*)§ionAttributes, " \t"))) {
|
&& (currentAttribute = strtok((char*)§ionAttributes, " \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,
|
||||||
|
Reference in New Issue
Block a user