summaryrefslogtreecommitdiff
path: root/dddup.c
diff options
context:
space:
mode:
Diffstat (limited to 'dddup.c')
-rw-r--r--dddup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dddup.c b/dddup.c
index 612b9c7..5fb370d 100644
--- a/dddup.c
+++ b/dddup.c
@@ -41,6 +41,7 @@ main(int argc, char **argv)
char ch;
char *conffile = NULL;
int reqc;
+ int errs;
while ((ch = getopt(argc, argv, "f:dvh")) != -1)
switch (ch) {
@@ -63,7 +64,8 @@ main(int argc, char **argv)
reqv = malloc(sizeof(struct dd_request));
if ((reqc = parse_config(conffile, reqv)) == 0)
errx(1, "Nothing to do");
- do_request(reqc, reqv);
+ if ((errs = do_request(reqc, reqv)) != 0)
+ warnx("%i error(s) occurred", errs);
free_config(reqc, reqv);
free(reqv);
exit(0);