remove new-line from error() calls.
This commit is contained in:
parent
9767be013a
commit
90505d8e5b
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Reference in a new issue