Archived
1
0
Fork 0

dlight.c: do not add a newline to error() calls

This commit is contained in:
Henrik Hautakoski 2011-10-12 15:26:04 +02:00
parent e3bd4545a2
commit c41f11e57a

View file

@ -26,7 +26,7 @@ static int write_http_file(struct http_file *file, const char *dest) {
fd = open(path, O_WRONLY | O_CREAT | O_EXCL, 0664);
if (fd < 0 && errno != EEXIST) {
error("failed to write file: %s\n", path);
error("failed to write file: %s", path);
return -1;
}
@ -94,7 +94,7 @@ static void process(struct cconf *config) {
rss = rss_parse(data->block, data->len);
if (!rss) {
error("failed to parse rss: %s\n", t->src);
error("failed to parse rss: %s", t->src);
continue;
}