From 1f46350f841f07907e50cb975c13853fe30e9f4b Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 2 Oct 2011 22:42:34 +0200 Subject: [PATCH] dlight.c: don't use errno from http_fetch_file http_fetch_file does not set errno. so dont use it. --- dlight.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlight.c b/dlight.c index 74e4339..3080909 100644 --- a/dlight.c +++ b/dlight.c @@ -58,8 +58,7 @@ static void process_items(rss_t rss, struct target *t) { if (file == NULL) { file = http_fetch_file(item.link); if (file == NULL) { - error("download failed: %s", - strerror(errno)); + error("download failed"); continue; } }