From c41f11e57ac8b94b3f8dfc687747c37ac9b6c846 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 12 Oct 2011 15:26:04 +0200 Subject: [PATCH] dlight.c: do not add a newline to error() calls --- dlight.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlight.c b/dlight.c index 3080909..2708572 100644 --- a/dlight.c +++ b/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); 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; }