X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fos-local.c;h=6f798a71fa1f20e2c0aeafc25171fa6e1360983b;hb=3a2e98e91c3a8f93e5b37cb7e5a76708194cff77;hp=486d590f3cde70ebf6b9bfd345d15dc30d18b9cd;hpb=ea03b162556802d10f48eb329c2ef7224da783c3;p=openldap diff --git a/libraries/libldap/os-local.c b/libraries/libldap/os-local.c index 486d590f3c..6f798a71fa 100644 --- a/libraries/libldap/os-local.c +++ b/libraries/libldap/os-local.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2008 The OpenLDAP Foundation. + * Copyright 1998-2009 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -149,7 +149,7 @@ ldap_pvt_is_socket_ready(LDAP *ld, int s) == AC_SOCKET_ERROR ) { /* XXX: needs to be replace with ber_stream_read() */ - int rc = read(s, &ch, 1); + (void)read(s, &ch, 1); TRACE; return -1; } @@ -234,7 +234,7 @@ sendcred: msg.msg_accrights = (char *)fds; msg.msg_accrightslen = sizeof(int); # endif /* HAVE_STRUCT_MSGHDR_MSG_CONTROL */ - getpeername( s, sa, &salen ); + getpeername( s, (struct sockaddr *) sa, &salen ); fchmod( fds[0], S_ISUID|S_IRWXU ); write( fds[1], sa, salen ); sendmsg( s, &msg, 0 );