summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2021-11-04 13:00:05 +0200
committerStijn Tintel <stijn@linux-ipv6.be>2021-11-04 13:15:38 +0200
commit20bf958bea20e44a1d75d430acf9b863702fe229 (patch)
treefd57268aee2a1f73916945b35d7b3a7a2f54ecd9
parent1fa35765ddf64976aa48950cac53d501fb71dda0 (diff)
downloadrpcd-20bf958bea20e44a1d75d430acf9b863702fe229.tar.gz
session: use uloop_timeout_remaining64
The uloop_timeout_remaining is being deprecated. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Acked-by: John Crispin <john@phrozen.org>
-rw-r--r--session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.c b/session.c
index 347cf4e..e646160 100644
--- a/session.c
+++ b/session.c
@@ -112,7 +112,7 @@ enum {
static const struct blobmsg_policy dump_policy[__RPC_DUMP_MAX] = {
[RPC_DUMP_SID] = { .name = "ubus_rpc_session", .type = BLOBMSG_TYPE_STRING },
[RPC_DUMP_TIMEOUT] = { .name = "timeout", .type = BLOBMSG_TYPE_INT32 },
- [RPC_DUMP_EXPIRES] = { .name = "expires", .type = BLOBMSG_TYPE_INT32 },
+ [RPC_DUMP_EXPIRES] = { .name = "expires", .type = BLOBMSG_TYPE_INT64 },
[RPC_DUMP_DATA] = { .name = "data", .type = BLOBMSG_TYPE_TABLE },
};
@@ -226,7 +226,7 @@ rpc_session_to_blob(struct rpc_session *ses, bool acls)
blobmsg_add_string(&buf, "ubus_rpc_session", ses->id);
blobmsg_add_u32(&buf, "timeout", ses->timeout);
- blobmsg_add_u32(&buf, "expires", uloop_timeout_remaining(&ses->t) / 1000);
+ blobmsg_add_u64(&buf, "expires", uloop_timeout_remaining64(&ses->t) / 1000);
if (acls) {
c = blobmsg_open_table(&buf, "acls");