remove new-line from error() calls.
This commit is contained in:
parent
9767be013a
commit
90505d8e5b
2 changed files with 2 additions and 2 deletions
2
dlight.c
2
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 &&
|
if (http_download_file(item.link, filter->dest) < 0 &&
|
||||||
errno != EEXIST) {
|
errno != EEXIST) {
|
||||||
error("download failed: %s\n", strerror(errno));
|
error("download failed: %s", strerror(errno));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ int hold_lock(struct lockfile *lock, const char *filename, int force) {
|
||||||
lock->fd = open(lock->name, mask, 0600);
|
lock->fd = open(lock->name, mask, 0600);
|
||||||
if (lock->fd < 0) {
|
if (lock->fd < 0) {
|
||||||
return error(errno == EEXIST ?
|
return error(errno == EEXIST ?
|
||||||
"'%s' is locked\n" : "unable to create lockfile '%s'",
|
"'%s' is locked" : "unable to create lockfile '%s'",
|
||||||
lock->name);
|
lock->name);
|
||||||
}
|
}
|
||||||
lock->next = active_locks;
|
lock->next = active_locks;
|
||||||
|
|
|
||||||
Reference in a new issue