Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
fix backport
Browse files Browse the repository at this point in the history
  • Loading branch information
misson20000 committed May 24, 2018
1 parent 94fba67 commit 72c40ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ipc/sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include<libtransistor/loader_config.h>
#include<libtransistor/svc.h>
#include<libtransistor/ipc.h>
#include<libtransistor/ipc_helpers.h>
#include<libtransistor/err.h>
#include<libtransistor/util.h>
#include<libtransistor/ipc/sm.h>
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 72c40ac

Please sign in to comment.