mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Rename local variable 'sun' to 'sa' to avoid clash on Sun computers...
This commit is contained in:
parent
8be1d467b8
commit
9d1e2ef7e2
@ -111,10 +111,10 @@ ldap_pvt_is_socket_ready(LDAP *ld, int s)
|
||||
#else
|
||||
{
|
||||
/* error slippery */
|
||||
struct sockaddr_un sun;
|
||||
struct sockaddr_un sa;
|
||||
char ch;
|
||||
int dummy = sizeof(sun);
|
||||
if ( getpeername( s, (struct sockaddr *) &sun, &dummy ) == -1 ) {
|
||||
int dummy = sizeof(sa);
|
||||
if ( getpeername( s, (struct sockaddr *) &sa, &dummy ) == -1 ) {
|
||||
/* XXX: needs to be replace with ber_stream_read() */
|
||||
read(s, &ch, 1);
|
||||
TRACE;
|
||||
@ -128,7 +128,7 @@ ldap_pvt_is_socket_ready(LDAP *ld, int s)
|
||||
#undef TRACE
|
||||
|
||||
static int
|
||||
ldap_pvt_connect(LDAP *ld, ber_socket_t s, struct sockaddr_un *sun, int async)
|
||||
ldap_pvt_connect(LDAP *ld, ber_socket_t s, struct sockaddr_un *sa, int async)
|
||||
{
|
||||
struct timeval tv, *opt_tv=NULL;
|
||||
fd_set wfds, *z=NULL;
|
||||
@ -144,7 +144,7 @@ ldap_pvt_connect(LDAP *ld, ber_socket_t s, struct sockaddr_un *sun, int async)
|
||||
if ( ldap_pvt_ndelay_on(ld, s) == -1 )
|
||||
return ( -1 );
|
||||
|
||||
if ( connect(s, (struct sockaddr *) sun, sizeof(struct sockaddr_un)) == 0 )
|
||||
if ( connect(s, (struct sockaddr *) sa, sizeof(struct sockaddr_un)) == 0 )
|
||||
{
|
||||
if ( ldap_pvt_ndelay_off(ld, s) == -1 )
|
||||
return ( -1 );
|
||||
|
@ -7,6 +7,7 @@
|
||||
include ./schema/core.schema
|
||||
include ./schema/cosine.schema
|
||||
include ./schema/inetorgperson.schema
|
||||
#include ./schema/nis.schema
|
||||
schemacheck on
|
||||
pidfile ./test-db/slapd.pid
|
||||
argsfile ./test-db/slapd.args
|
||||
|
Loading…
Reference in New Issue
Block a user