Commit 1ef14875 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Thought I fixed these errors previously... oh well.

parent a56c161b
......@@ -103,7 +103,7 @@ LDAP_BEGIN_DECL
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 ));
......
......@@ -42,8 +42,7 @@ int * ber_errno_addr(void)
/*
* Print stuff
*/
static void
ber_error_print( const char *data )
void ber_error_print( LDAP_CONST char *data )
{
assert( data != NULL );
......
......@@ -245,7 +245,7 @@ static Listener * open_listener( const char* url )
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)
......@@ -288,7 +288,7 @@ static Listener * open_listener( const char* url )
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) );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment