aboutsummaryrefslogtreecommitdiffstats
path: root/src/jo_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jo_main.c')
-rw-r--r--src/jo_main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/jo_main.c b/src/jo_main.c
index 2d19ab8..e5576b3 100644
--- a/src/jo_main.c
+++ b/src/jo_main.c
@@ -21,13 +21,11 @@
int
main(void)
{
- char *status;
+ int8_t status;
- if (!(status = jo_f_status())) {
+ if ((status = jo_f_status()) < 0) {
return (JO_RET_RD_FAILED);
}
- printf("status: %s\n", status);
- free(status);
- status = NULL;
+ printf("status: %d\n", status);
return (JO_RET_FINE);
}