dlight.c: do not add a newline to error() calls
This commit is contained in:
parent
e3bd4545a2
commit
c41f11e57a
1 changed files with 2 additions and 2 deletions
4
dlight.c
4
dlight.c
|
|
@ -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);
|
fd = open(path, O_WRONLY | O_CREAT | O_EXCL, 0664);
|
||||||
if (fd < 0 && errno != EEXIST) {
|
if (fd < 0 && errno != EEXIST) {
|
||||||
error("failed to write file: %s\n", path);
|
error("failed to write file: %s", path);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -94,7 +94,7 @@ static void process(struct cconf *config) {
|
||||||
|
|
||||||
rss = rss_parse(data->block, data->len);
|
rss = rss_parse(data->block, data->len);
|
||||||
if (!rss) {
|
if (!rss) {
|
||||||
error("failed to parse rss: %s\n", t->src);
|
error("failed to parse rss: %s", t->src);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue