oob: squash some valgrind warnings
These warnings were harmless, but they appeared even for simple programs like single-process runs of `ring_c`. This commit was SVN r29093.
Этот коммит содержится в:
родитель
5d1fa4fa0e
Коммит
d17f104e7a
@ -11,7 +11,7 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2006-2013 Los Alamos National Security, LLC.
|
* Copyright (c) 2006-2013 Los Alamos National Security, LLC.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2009-2013 Cisco Systems, Inc. All rights reserved.
|
||||||
* Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
|
* Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
@ -298,6 +298,7 @@ static int tcp_peer_send_connect_ack(mca_oob_tcp_module_t *mod,
|
|||||||
hdr.dst = peer->name;
|
hdr.dst = peer->name;
|
||||||
hdr.type = MCA_OOB_TCP_IDENT;
|
hdr.type = MCA_OOB_TCP_IDENT;
|
||||||
hdr.tag = 0;
|
hdr.tag = 0;
|
||||||
|
hdr.nbytes = 0;
|
||||||
MCA_OOB_TCP_HDR_HTON(&hdr);
|
MCA_OOB_TCP_HDR_HTON(&hdr);
|
||||||
if (0 > tcp_peer_send_blocking(mod, peer, &hdr, sizeof(hdr))) {
|
if (0 > tcp_peer_send_blocking(mod, peer, &hdr, sizeof(hdr))) {
|
||||||
ORTE_ERROR_LOG(ORTE_ERR_UNREACH);
|
ORTE_ERROR_LOG(ORTE_ERR_UNREACH);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2006-2013 Los Alamos National Security, LLC.
|
* Copyright (c) 2006-2013 Los Alamos National Security, LLC.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2010-2011 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2010-2013 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -115,6 +115,7 @@ OBJ_CLASS_DECLARATION(mca_oob_tcp_recv_t);
|
|||||||
/* setup the header */ \
|
/* setup the header */ \
|
||||||
msg->hdr.origin = *ORTE_PROC_MY_NAME; \
|
msg->hdr.origin = *ORTE_PROC_MY_NAME; \
|
||||||
msg->hdr.dst = (m)->peer; \
|
msg->hdr.dst = (m)->peer; \
|
||||||
|
msg->hdr.type = MCA_OOB_TCP_USER; \
|
||||||
msg->hdr.tag = (m)->tag; \
|
msg->hdr.tag = (m)->tag; \
|
||||||
/* point to the actual message */ \
|
/* point to the actual message */ \
|
||||||
msg->msg = (m); \
|
msg->msg = (m); \
|
||||||
@ -155,6 +156,7 @@ OBJ_CLASS_DECLARATION(mca_oob_tcp_recv_t);
|
|||||||
/* setup the header */ \
|
/* setup the header */ \
|
||||||
msg->hdr.origin = *ORTE_PROC_MY_NAME; \
|
msg->hdr.origin = *ORTE_PROC_MY_NAME; \
|
||||||
msg->hdr.dst = (m)->peer; \
|
msg->hdr.dst = (m)->peer; \
|
||||||
|
msg->hdr.type = MCA_OOB_TCP_USER; \
|
||||||
msg->hdr.tag = (m)->tag; \
|
msg->hdr.tag = (m)->tag; \
|
||||||
/* point to the actual message */ \
|
/* point to the actual message */ \
|
||||||
msg->msg = (m); \
|
msg->msg = (m); \
|
||||||
@ -194,6 +196,7 @@ OBJ_CLASS_DECLARATION(mca_oob_tcp_recv_t);
|
|||||||
/* setup the header */ \
|
/* setup the header */ \
|
||||||
msg->hdr.origin = (m)->hdr.origin; \
|
msg->hdr.origin = (m)->hdr.origin; \
|
||||||
msg->hdr.dst = (m)->hdr.dst; \
|
msg->hdr.dst = (m)->hdr.dst; \
|
||||||
|
msg->hdr.type = MCA_OOB_TCP_USER; \
|
||||||
msg->hdr.tag = (m)->hdr.tag; \
|
msg->hdr.tag = (m)->hdr.tag; \
|
||||||
/* point to the actual message */ \
|
/* point to the actual message */ \
|
||||||
msg->data = (m)->data; \
|
msg->data = (m)->data; \
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user