uxc: clean up error handling
authorDaniel Golle <daniel@makrotopia.org>
Fri, 18 Feb 2022 02:31:37 +0000 (02:31 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 18 Feb 2022 02:55:25 +0000 (02:55 +0000)
commita839518dcd9804050309ef0221c0587772d49f36
treec0c6f1ce71868d2d93b47f96e66e08bdcb5de00c
parent0272c7c36e5185b3d7c7d6bd5b2ae5dfe6e905f6
uxc: clean up error handling

Use negative return value to indicate errors and positive return value
for quantitative information.
Use 'bool' return type for some functions which never throw an error.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
uxc.c