ubus: rename uloop_timeout_pending() to uloop_timeout_remaining()
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 23 Jan 2013 18:36:16 +0000 (19:36 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 23 Jan 2013 18:36:16 +0000 (19:36 +0100)
ubus-session.c

index e590d9c..8354489 100644 (file)
@@ -144,7 +144,7 @@ uh_ubus_session_dump(struct uh_ubus_session *ses,
 
        blobmsg_add_string(&buf, "sid", ses->id);
        blobmsg_add_u32(&buf, "timeout", ses->timeout);
-       blobmsg_add_u32(&buf, "expires", uloop_timeout_pending(&ses->t) / 1000);
+       blobmsg_add_u32(&buf, "expires", uloop_timeout_remaining(&ses->t) / 1000);
 
        c = blobmsg_open_table(&buf, "acls");
        uh_ubus_session_dump_acls(ses, &buf);