util/lock/file_lock.c: Format with clang-format
BRANCH=none
TEST=none
@@ -100,8 +100,8 @@ static int file_lock_open_or_create(struct ipc_lock *lock)
if (!tmpdir)
return -1;
- if (snprintf(path, sizeof(path), "%s/%s",
- tmpdir, lock->filename) < 0) {
+ if (snprintf(path, sizeof(path), "%s/%s", tmpdir,
+ lock->filename) < 0) {
return -1;
}
} else {
@@ -115,10 +115,9 @@ static int file_lock_open_or_create(struct ipc_lock *lock)
return -1;
}
- if (snprintf(path, sizeof(path),
- "%s/%s", dir, lock->filename) < 0)
+ if (snprintf(path, sizeof(path), "%s/%s", dir, lock->filename) <
+ 0)
return -1;
-
}
lock->fd = open(path, O_RDWR | O_CREAT, 0600);
