From 5587f02b2a74944db59394acbc82a885daf749f8 Mon Sep 17 00:00:00 2001 From: "Christopher J. Morrone" <morrone2@llnl.gov> Date: Thu, 2 Feb 2006 02:49:47 +0000 Subject: [PATCH] Quiet a few build warnings --- src/common/slurm_protocol_pack.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/slurm_protocol_pack.c b/src/common/slurm_protocol_pack.c index 7164f93eb4e..14b38fafeef 100644 --- a/src/common/slurm_protocol_pack.c +++ b/src/common/slurm_protocol_pack.c @@ -3080,9 +3080,9 @@ _unpack_ret_list(List *ret_list, for (i=0; i<size_val; i++) { ret_type = xmalloc(sizeof(ret_types_t)); list_push(*ret_list, ret_type); - safe_unpack32(&ret_type->msg_rc, buffer); - safe_unpack32(&ret_type->err, buffer); - safe_unpack32(&ret_type->type, buffer); + safe_unpack32((uint32_t *)&ret_type->msg_rc, buffer); + safe_unpack32((uint32_t *)&ret_type->err, buffer); + safe_unpack32((uint32_t *)&ret_type->type, buffer); msg.msg_type = ret_type->type; @@ -3093,7 +3093,7 @@ _unpack_ret_list(List *ret_list, list_push(ret_type->ret_data_list, ret_data_info); safe_unpackstr_xmalloc(&ret_data_info->node_name, &uint16_tmp, buffer); - safe_unpack32(&ret_data_info->nodeid, buffer); + safe_unpack32((uint32_t *)&ret_data_info->nodeid, buffer); unpack_msg(&msg, buffer); ret_data_info->data = msg.data; } -- GitLab