]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- the right way...
authorPaweł Sikora <pluto@pld-linux.org>
Tue, 6 Jul 2004 19:22:45 +0000 (19:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    2.6.7-ppc-strncasecmp.patch -> 1.2

2.6.7-ppc-strncasecmp.patch

index 94c7d701f17c5c1d24a35bd53ffada3739c4e098..570208b40138f5a46776700c1d15254985886454 100644 (file)
@@ -1,29 +1,18 @@
 --- linux-2.6.7/fs/gfs_locking/lock_gulm/utils_verb_flags.c.orig       2004-07-06 18:20:32.000000000 +0000
-+++ linux-2.6.7/fs/gfs_locking/lock_gulm/utils_verb_flags.c    2004-07-06 18:56:35.685436549 +0000
-@@ -20,26 +20,6 @@
++++ linux-2.6.7/fs/gfs_locking/lock_gulm/utils_verb_flags.c    2004-07-06 19:20:55.868623553 +0000
+@@ -20,6 +20,7 @@
  
  #include "gulm_log_msg_bits.h"
  
--static __inline__ int
--strncasecmp (const char *s1, const char *s2, size_t l)
--{
--      char c1 = '\0', c2 = '\0';
--
--      while (*s1 && *s2 && l-- > 0) {
--              c1 = *s1++;
--              c2 = *s2++;
--
--              if (c1 >= 'A' && c1 <= 'Z')
--                      c1 += 'a' - 'A';
--
--              if (c2 >= 'A' && c2 <= 'Z')
--                      c2 += 'a' - 'A';
--
--              if (c1 != c2)
--                      break;
--      }
--      return (c1 - c2);
--}
++#ifndef CONFIG_PPC
+ static __inline__ int
+ strncasecmp (const char *s1, const char *s2, size_t l)
+ {
+@@ -40,6 +41,7 @@
+       }
+       return (c1 - c2);
+ }
++#endif
  
  static int bit_array[16] = { 0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4 };
  
This page took 1.573873 seconds and 4 git commands to generate.