projects
/
project
/
uclient.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29c798a
)
example: always exit on output file errors
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 4 May 2014 17:59:25 +0000
(19:59 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 4 May 2014 17:59:25 +0000
(19:59 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
uclient-example.c
patch
|
blob
|
history
diff --git
a/uclient-example.c
b/uclient-example.c
index 7c54ce3429efc5fd20bb8b64f38ec1c7b250f584..1f5a82b72175b24ae9a89b2144ca88e51befbdcf 100644
(file)
--- a/
uclient-example.c
+++ b/
uclient-example.c
@@
-98,11
+98,11
@@
static void example_header_done(struct uclient *cl)
output_fd = open_output_file(cl->url->location, true);
if (output_fd < 0) {
- if (!quiet)
{
+ if (!quiet)
perror("Cannot open output file");
-
error_ret = 3;
-
uloop_end(
);
- }
+ error_ret = 3;
+
uclient_disconnect(cl
);
+ uloop_end();
}
}