typedef int* (*BER_ERRNO_FN) LDAP_P(( void ));
-typedef void (*BER_LOG_PRINT_FN) LDAP_P(( char *buf ));
+typedef void (*BER_LOG_PRINT_FN) LDAP_P(( LDAP_CONST char *buf ));
typedef void* (*BER_MEMALLOC_FN) LDAP_P(( ber_len_t size ));
typedef void* (*BER_MEMCALLOC_FN) LDAP_P(( ber_len_t n, ber_len_t size ));
hints.ai_socktype = SOCK_STREAM;
# ifdef LDAP_PF_UNIX
- if (lud->lud_protocol == LDAP_PROTO_LOCAL) {
+ if ( ldap_pvt_url_scheme2proto(lud->lud_scheme) == LDAP_PROTO_IPC ) {
if ( lud->lud_host == NULL || lud->lud_host[0] == '\0' ) {
err = getaddrinfo(NULL, "/tmp/.ldap-sock", &hints, &res);
if (!err)
if ( sai->ai_family != AF_UNIX ) {
#else
- if ( ldap_pvt_url_scheme2proto(url) == LDAP_PROTO_IPC ) {
+ if ( ldap_pvt_url_scheme2proto(lud->lud_scheme) == LDAP_PROTO_IPC ) {
#ifdef LDAP_PF_UNIX
port = 0;
(void) memset( (void *)&l.sl_sa.sa_un_addr, '\0', sizeof(l.sl_sa.sa_un_addr) );