mirror of https://github.com/nirenjan/libx52.git
Prior to this change, x52cli assumed that the return code from the handler was a standard error code, but negated. This is an incorrect assumption as the libx52 API returns a `libx52_error_code` enum, which is a positive integer. This change fixes the printing of the error message to call `libx52_strerror`, which translates it correctly. It also adds error printing to any failure of `libx52_init`, as well as explicitly specifying `LIBX52_SUCCESS` instead of `0`. Addresses #19. |
||
|---|---|---|
| .. | ||
| Makefile.am | ||
| x52_cli.c | ||
| x52cli.man | ||