]> git.sur5r.net Git - u-boot/blobdiff - lib_generic/string.c
Makefile: fix parallel builds
[u-boot] / lib_generic / string.c
index dea4d69a9b394d1c46958fc402ac825e6fbeb7f2..e0b793abbee5106e5614f51f7876fd1e6be1d5e5 100644 (file)
@@ -21,7 +21,7 @@
 #include <malloc.h>
 
 
-#ifndef __HAVE_ARCH_STRNICMP
+#if 0 /* not used - was: #ifndef __HAVE_ARCH_STRNICMP */
 /**
  * strnicmp - Case insensitive, length-limited string comparison
  * @s1: One string
@@ -380,7 +380,7 @@ char *strswab(const char *s)
                return (NULL);
        }
 
-       for (p=(char *)s, q=p+1; (*p != '\0') && (*p != '\0'); p+=2, q+=2) {
+       for (p=(char *)s, q=p+1; (*p != '\0') && (*q != '\0'); p+=2, q+=2) {
                char  tmp;
 
                tmp = *p;