aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jo_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jo_main.c b/src/jo_main.c
index 7ee0c83..f3e97f4 100644
--- a/src/jo_main.c
+++ b/src/jo_main.c
@@ -16,6 +16,7 @@
** Files prefixes
** --------------
** f: fetch
+** n: notify
*/
int
@@ -24,10 +25,11 @@ main(void)
int8_t status;
int8_t percent;
- if ((status = jo_f_status()) < 0) {
+ if ((status = jo_f_status()) == -2) {
return (JO_RET_RD_FAILED);
}
- if ((percent = jo_f_percent()) < 0) {
+ if ((percent = jo_f_percent()) == -3) {
+ printf("failed\n");
return (JO_RET_RD_FAILED);
}
printf("status: %hhd, %hhd%%\n", status, percent);