Use qdict_get_qdict() and qdict_get_try_int() to simplify.
While there, add a sanity check for seconds.
Signed-off-by: Markus Armbruster
---
tests/test-qmp-event.c | 14 --
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/tests/test-qmp-event.c b/tests/test-qmp-event.c
On 02/17/2017 02:38 PM, Markus Armbruster wrote:
> Use qdict_get_qdict() and qdict_get_try_int() to simplify.
>
> While there, add a sanity check for seconds.
>
> Signed-off-by: Markus Armbruster
> ---
> tests/test-qmp-event.c | 14 --
> 1 file changed, 4 insertions(+), 10 deletions