]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Use correct namespace for (BER_)STRLENOF
authorOndřej Kuzník <ondra@openldap.org>
Thu, 19 Jul 2018 07:33:43 +0000 (08:33 +0100)
committerOndřej Kuzník <ondra@openldap.org>
Thu, 19 Jul 2018 07:35:29 +0000 (08:35 +0100)
include/lber_pvt.h

index 3767fa22dc9b4546fa1423519ce0990f5e4cbe3d..e17995eac535b5b5669e8b13557128e42f7a49cb 100644 (file)
@@ -201,11 +201,8 @@ ber_bvarray_dup_x LDAP_P(( BerVarray *dst, BerVarray src, void *ctx ));
                (dst)->bv_val = (bv)->bv_val; \
        } while (0)
 
-#ifndef STRLENOF
-#define STRLENOF(s)    (sizeof(s)-1)
-#endif
-
-#define BER_BVC(s)             { STRLENOF(s), (char *)(s) }
+#define BER_STRLENOF(s)        (sizeof(s)-1)
+#define BER_BVC(s)             { BER_STRLENOF(s), (char *)(s) }
 #define BER_BVNULL             { 0L, NULL }
 #define BER_BVZERO(bv) \
        do { \
@@ -214,7 +211,7 @@ ber_bvarray_dup_x LDAP_P(( BerVarray *dst, BerVarray src, void *ctx ));
        } while (0)
 #define BER_BVSTR(bv,s)        \
        do { \
-               (bv)->bv_len = STRLENOF(s); \
+               (bv)->bv_len = BER_STRLENOF(s); \
                (bv)->bv_val = (s); \
        } while (0)
 #define BER_BVISNULL(bv)       ((bv)->bv_val == NULL)