ubus: Fix displayed valid paramater for both DHCPv4 and DHCPv6 lease
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 17 Nov 2016 15:11:58 +0000 (16:11 +0100)
committerJohn Crispin <john@phrozen.org>
Mon, 21 Nov 2016 10:36:07 +0000 (11:36 +0100)
commit4fc68bde9fd7b630a2b51fe189e10e26714abc4d
tree8ba568d91898b54e1b4af11040c419c4a11bd7fe
parent44ca70ae6f0fb649cef47d9160ec1ee13e7844f1
ubus: Fix displayed valid paramater for both DHCPv4 and DHCPv6 lease

Fix ubus valid parameter being displayed as a negative number;
also display infinite lifetime as INT32_MAX

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/ubus.c