IPC: use the correct pointer type.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
Angus Salkeld 2011-06-14 12:07:53 +10:00
parent 77b6e15a85
commit 42e79dfd2f
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ struct qb_ipcc_connection {
struct qb_ipc_one_way response;
struct qb_ipc_one_way event;
struct qb_ipcc_funcs funcs;
char *receive_buf;
struct qb_ipc_request_header *receive_buf;
};
int32_t qb_ipcc_us_setup_connect(struct qb_ipcc_connection *c,
@ -175,7 +175,7 @@ struct qb_ipcs_connection {
struct qb_ipc_one_way event;
struct qb_ipcs_service *service;
struct qb_list_head list;
char *receive_buf;
struct qb_ipc_request_header *receive_buf;
void *context;
int32_t fc_enabled;
int32_t poll_events;

View File

@ -482,7 +482,7 @@ static int32_t _process_request_(struct qb_ipcs_connection *c,
size = c->service->funcs.peek(&c->request, (void**)&hdr,
ms_timeout);
} else {
hdr = (struct qb_ipc_request_header *)c->receive_buf;
hdr = c->receive_buf;
size = c->service->funcs.recv(&c->request, hdr, c->request.max_msg_size,
ms_timeout);
}