]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/os-local.c
silence warnings
[openldap] / libraries / libldap / os-local.c
index 486d590f3cde70ebf6b9bfd345d15dc30d18b9cd..6f798a71fa1f20e2c0aeafc25171fa6e1360983b 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * 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 );