Skip to content

Commit af5d6f1

Browse files
committed
coverity CID 1472867 and 1472870: changing recast method so as to not
confuse coverity as much Signed-off-by: Aurelien Bouteiller <bouteill@icl.utk.edu>
1 parent 2e66e3f commit af5d6f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ompi/communicator/ft/comm_ft_detector.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2020 The University of Tennessee and The University
2+
* Copyright (c) 2016-2021 The University of Tennessee and The University
33
* of Tennessee Research Foundation. All rights
44
* reserved.
55
*
@@ -389,7 +389,7 @@ static int fd_heartbeat_request(comm_detector_t* detector) {
389389
memcpy(&msg->rdma_rreg[0], detector->hb_rdma_flag_lreg, regsize);
390390
msg->rdma_raddr = (uint64_t)&detector->hb_rdma_flag;
391391
}
392-
ret = ompi_comm_rbcast_send_msg(proc, &msg->super, sizeof(*msg)+regsize);
392+
ret = ompi_comm_rbcast_send_msg(proc, (ompi_comm_rbcast_message_t*)msg, sizeof(*msg)+regsize);
393393
free(msg);
394394
break;
395395
}
@@ -679,7 +679,7 @@ static int fd_heartbeat_send(comm_detector_t* detector) {
679679
msg.super.type = comm_heartbeat_recv_cb_type;
680680
msg.from = detector->hb_rdma_rank; /* comm->c_my_rank; except during finalize when it is equal to detector->hb_observer */
681681
ompi_proc_t* proc = ompi_comm_peer_lookup(comm, detector->hb_observer);
682-
ompi_comm_rbcast_send_msg(proc, &msg.super, sizeof(msg));
682+
ompi_comm_rbcast_send_msg(proc, (ompi_comm_rbcast_message_t*)&msg, sizeof(msg));
683683
return OMPI_SUCCESS;
684684
}
685685

0 commit comments

Comments
 (0)