mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Thought I fixed these errors previously... oh well.
This commit is contained in:
parent
a56c161bdb
commit
1ef14875db
@ -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) );
|
||||
|
Loading…
Reference in New Issue
Block a user