summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 23de13b..5af6663 100644
--- a/main.c
+++ b/main.c
@@ -37,7 +37,7 @@ int main(int argc, char *argv[])
const char *cachefile = ".aports.cache.yaml";
char dirpath_buf[PATH_MAX];
char *dirpath = dirpath_buf;
- int dirfd;
+ int dirfd, rc;
char *shell_argv[] = {"/bin/sh", NULL};
@@ -83,9 +83,9 @@ int main(int argc, char *argv[])
if (verbose)
printf("updating cache for %s\n", dirpath);
- aports_cache_refresh(dirfd, cachefile, shell_argv);
+ rc = aports_cache_refresh(dirfd, cachefile, shell_argv);
close(dirfd);
- return 0;
+ return rc;
}