use socklen_t where appropriate instead of int
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8923 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -962,7 +962,8 @@ static krb5_error_code LDAP__connect(krb5_context context, HDB * db)
|
||||
if (db->db != NULL) {
|
||||
/* connection has been opened. ping server. */
|
||||
struct sockaddr_un addr;
|
||||
int sd, len;
|
||||
socklen_t len;
|
||||
int sd;
|
||||
|
||||
if (ldap_get_option((LDAP *) db->db, LDAP_OPT_DESC, &sd) == 0 &&
|
||||
getpeername(sd, (struct sockaddr *) &addr, &len) < 0) {
|
||||
|
Reference in New Issue
Block a user