Replaced str(n)casecmp with more standard str(n)icmp.
authorKeith Kanios <spook@dynatos.net>
Fri, 13 Apr 2007 22:00:42 +0000 (22:00 +0000)
committerKeith Kanios <spook@dynatos.net>
Fri, 13 Apr 2007 22:00:42 +0000 (22:00 +0000)
output/outmacho.c

index 8c3ff79..933d42e 100644 (file)
@@ -568,7 +568,7 @@ static int32_t macho_section(char *name, int pass, int *bits)
             while ((NULL != sectionAttributes)
                    && (currentAttribute = strtok((char*)&sectionAttributes, " \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,