odhcp6c: let odhcp6c_add_state return a success/failure indication
authorHans Dedecker <dedeckeh@gmail.com>
Sat, 13 Jan 2018 18:09:53 +0000 (19:09 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Sat, 13 Jan 2018 20:19:09 +0000 (21:19 +0100)
commitf3a46099dc8f1cd0922106e90e8ff437288e3512
tree55b17413aa9bdd79b4d90d643a3eb453fd1a5be4
parentacb4fc01446093c1f1a89c225041adf4db0d18bf
odhcp6c: let odhcp6c_add_state return a success/failure indication

This will allow callers of odhcp6_add_state parsing a command line option :
generate a syslog error in case of failure
bail out with return an error code

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