summaryrefslogtreecommitdiff
path: root/dddup.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2005-04-28 20:39:39 +0000
committerDimitri Sokolyuk <demon@dim13.org>2005-04-28 20:39:39 +0000
commit5de94df423989ba2ffb6924f88fe2910379ca1c0 (patch)
tree28647a205729a58575148ebc0aabfa3d14139184 /dddup.c
parent45d9d4477663635bc77a1f2253535dfb20358821 (diff)
cleanup
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);