]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/memcmp.c
Add experimental code to check simple bind passwords
[openldap] / libraries / liblutil / memcmp.c
index b2c575d955da0e4ee237cf0445c7d04eb0b34c5f..eed4b89dee8e35d3b3fa3b04a27c8c301503a9a1 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 #include "portable.h"
 
 #include <ac/string.h>
@@ -6,10 +7,10 @@
  * Memory Compare
  */
 int
-memcmp(const void *v1, const void *v2, int n) 
+(memcmp)(const void *v1, const void *v2, int n) 
 {
     if (n != 0) {
-               register const unsigned char *s1=v1, *s2=v2;
+               const unsigned char *s1=v1, *s2=v2;
         do {
             if (*s1++ != *s2++)
                 return (*--s1 - *--s2);