]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorPierangelo Masarati <ando@openldap.org>
Tue, 19 Jun 2007 22:59:53 +0000 (22:59 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 19 Jun 2007 22:59:53 +0000 (22:59 +0000)
include/ldap_pvt.h
libraries/libldap/url.c

index 934999a48c92f61f9adc844a3ebc40d1d4918578..cc727e6708c124ee9fd8336cfd6babb23d5e9818 100644 (file)
@@ -47,7 +47,10 @@ struct ldap_url_desc; /* avoid pulling in <ldap.h> */
 #define LDAP_PVT_URL_PARSE_DEF_PORT            (0x02U)
 #define LDAP_PVT_URL_PARSE_NOEMPTY_DN          (0x04U)
 #define LDAP_PVT_URL_PARSE_NODEF_SCOPE         (0x08U)
-#define        LDAP_PVT_URL_PARSE_HISTORIC             (LDAP_PVT_URL_PARSE_NODEF_SCOPE | LDAP_PVT_URL_PARSE_NOEMPTY_HOST | LDAP_PVT_URL_PARSE_DEF_PORT)
+#define        LDAP_PVT_URL_PARSE_HISTORIC             (LDAP_PVT_URL_PARSE_NODEF_SCOPE | \
+                                                LDAP_PVT_URL_PARSE_NOEMPTY_HOST | \
+                                                LDAP_PVT_URL_PARSE_DEF_PORT)
+
 LDAP_F( int )
 ldap_url_parse_ext LDAP_P((
        LDAP_CONST char *url,
index 22c8a036a5ddc51353bb2168461567ac538b64db..6a6e076b56fa16c8a13a0b4f1f12a714639ffb6e 100644 (file)
@@ -552,7 +552,7 @@ desc2str_len( LDAPURLDesc *u )
        }
 
        if ( u->lud_filter ) {
-               len +=  hex_escape_len( u->lud_filter, URLESC_NONE );
+               len += hex_escape_len( u->lud_filter, URLESC_NONE );
                if ( !sep ) {
                        sep = 4;
                }
@@ -566,7 +566,7 @@ desc2str_len( LDAPURLDesc *u )
        }
 
        if ( u->lud_attrs ) {
-               len +=  hex_escape_len_list( u->lud_attrs, URLESC_NONE );
+               len += hex_escape_len_list( u->lud_attrs, URLESC_NONE );
                if ( !sep ) {
                        sep = 2;
                }