From 90505d8e5b74ab0301c142e6ba726b036410cdf8 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 6 Sep 2011 20:10:26 +0200 Subject: [PATCH] remove new-line from error() calls. --- dlight.c | 2 +- lockfile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlight.c b/dlight.c index f890080..483ee86 100644 --- a/dlight.c +++ b/dlight.c @@ -28,7 +28,7 @@ static void process_items(rss_t rss, struct target *t) { if (http_download_file(item.link, filter->dest) < 0 && errno != EEXIST) { - error("download failed: %s\n", strerror(errno)); + error("download failed: %s", strerror(errno)); continue; } diff --git a/lockfile.c b/lockfile.c index b8258f3..77800dd 100644 --- a/lockfile.c +++ b/lockfile.c @@ -114,7 +114,7 @@ int hold_lock(struct lockfile *lock, const char *filename, int force) { lock->fd = open(lock->name, mask, 0600); if (lock->fd < 0) { return error(errno == EEXIST ? - "'%s' is locked\n" : "unable to create lockfile '%s'", + "'%s' is locked" : "unable to create lockfile '%s'", lock->name); } lock->next = active_locks;