diff --git a/ompi/mca/btl/sctp/btl_sctp_endpoint.c b/ompi/mca/btl/sctp/btl_sctp_endpoint.c index 5a9bf09a97..4dadc9e224 100644 --- a/ompi/mca/btl/sctp/btl_sctp_endpoint.c +++ b/ompi/mca/btl/sctp/btl_sctp_endpoint.c @@ -9,6 +9,7 @@ * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. + * Copyright (c) 2009 Sun Microsystems, Inc All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -859,7 +860,7 @@ int mca_btl_sctp_set_socket_options(int sd) /* register io event here to see populated sndrcvinfo struct */ - bzero(&evnts, sizeof(evnts)); + memset(&evnts, 0, sizeof(evnts)); evnts.sctp_data_io_event = 1; if(setsockopt(sd, IPPROTO_SCTP, SCTP_EVENTS, &evnts, sizeof(evnts)) < 0) { BTL_ERROR(("setsockopt(SCTP_EVENTS) failed with errno=%d", opal_socket_errno)); diff --git a/ompi/mca/btl/sctp/btl_sctp_utils.c b/ompi/mca/btl/sctp/btl_sctp_utils.c index 918acef6ae..cd1d61860e 100644 --- a/ompi/mca/btl/sctp/btl_sctp_utils.c +++ b/ompi/mca/btl/sctp/btl_sctp_utils.c @@ -9,7 +9,7 @@ * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. - * Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -33,7 +33,7 @@ */ struct sockaddr_in mca_btl_sctp_utils_sockaddr_from_frag(struct mca_btl_sctp_frag_t *frag) { struct sockaddr_in btl_sockaddr; - bzero(&btl_sockaddr, sizeof(struct sockaddr_in)); + memset(&btl_sockaddr, 0, sizeof(struct sockaddr_in)); btl_sockaddr.sin_family = AF_INET; btl_sockaddr.sin_port = frag->endpoint->endpoint_addr->addr_port; btl_sockaddr.sin_addr.s_addr = frag->endpoint->endpoint_addr->addr_inet.s_addr; @@ -48,7 +48,7 @@ struct sockaddr_in mca_btl_sctp_utils_sockaddr_from_frag(struct mca_btl_sctp_fra */ struct sockaddr_in mca_btl_sctp_utils_sockaddr_from_endpoint(struct mca_btl_base_endpoint_t *ep) { struct sockaddr_in btl_sockaddr; - bzero(&btl_sockaddr, sizeof(struct sockaddr_in)); + memset(&btl_sockaddr, 0, sizeof(struct sockaddr_in)); btl_sockaddr.sin_family = AF_INET; btl_sockaddr.sin_port = ep->endpoint_addr->addr_port; btl_sockaddr.sin_addr.s_addr = ep->endpoint_addr->addr_inet.s_addr;