From 72c40ac92d4c380a4262275c8e58574029a32456 Mon Sep 17 00:00:00 2001 From: misson20000 Date: Wed, 23 May 2018 17:16:58 -0700 Subject: [PATCH] fix backport --- lib/ipc/sm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ipc/sm.c b/lib/ipc/sm.c index ac245f58..eac28061 100644 --- a/lib/ipc/sm.c +++ b/lib/ipc/sm.c @@ -2,7 +2,6 @@ #include #include #include -#include #include #include #include @@ -54,9 +53,10 @@ static __attribute__((destructor)) void sm_destruct() { static result_t sm_register() { // we only do this when necessary uint64_t raw = 0; - ipc_request_t rq = ipc_make_request(0); + ipc_request_t rq = ipc_default_request; rq.send_pid = true; - ipc_msg_raw_data_from_value(rq, raw); + rq.raw_data_size = sizeof(raw); + rq.raw_data = &raw; ipc_response_fmt_t rs = ipc_default_response_fmt; result_t r = ipc_send(sm_object, &rq, &rs);