Skip to content

Commit

Permalink
fixup! Change socket of states related operation to the state instead…
Browse files Browse the repository at this point in the history
… of session
  • Loading branch information
MatheusNtg committed Sep 11, 2020
1 parent 6049d3b commit cb9b7c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lunatik.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ int lunatik_closestate(struct lunatik_nl_state *state)
}

int lunatik_dostring(struct lunatik_nl_state *state,
const char *script, const char *script_name, size_t total_code_size)
const char *script, const char *script_name, size_t total_code_size)
{
int err = -1;
int parts = 0;
Expand Down Expand Up @@ -533,7 +533,7 @@ static int response_state_handler(struct nl_msg *msg, void *arg)
struct lunatik_nl_state *state = (struct lunatik_nl_state *)arg;

if (nla_parse(attrs_tb, ATTRS_COUNT, genlmsg_attrdata(gnlh, 0),
genlmsg_attrlen(gnlh, 0), NULL))
genlmsg_attrlen(gnlh, 0), NULL))
{
printf("Error parsing attributes\n");
state->cb_result = CB_ERROR;
Expand Down

0 comments on commit cb9b7c6

Please sign in to comment.