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;