Unverified Commit 47903908 by 2xsec Committed by Christian Brauner

tree-wide: coding style fixes

Signed-off-by: 's avatar2xsec <dh48.jeong@samsung.com> [christian.brauner@ubuntu.com: cleanup if-branches in confile.c] Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 9c3f0f02
......@@ -1212,7 +1212,7 @@ static int lxc_cmd_accept(int fd, uint32_t events, void *data,
connection = accept(fd, NULL, 0);
if (connection < 0) {
SYSERROR("Failed to accept connection to run command.");
SYSERROR("Failed to accept connection to run command");
return LXC_MAINLOOP_ERROR;
}
......
......@@ -120,7 +120,7 @@ int lxc_make_abstract_socket_name(char *path, size_t pathlen,
* Although null termination isn't required by the API, we do it anyway
* because we print the sockname out sometimes.
*/
len = pathlen -2;
len = pathlen - 2;
name = lxcname;
if (!name)
......@@ -220,6 +220,6 @@ int lxc_add_state_client(int state_client_fd, struct lxc_handler *handler,
return state;
}
TRACE("added state client %d to state client list", state_client_fd);
TRACE("Added state client %d to state client list", state_client_fd);
return MAX_STATE;
}
......@@ -79,7 +79,7 @@ int lxc_monitor_fifo_name(const char *lxcpath, char *fifo_path, size_t fifo_path
}
ret = mkdir_p(fifo_path, 0755);
if (ret < 0) {
ERROR("Unable to create monitor fifo directory %s.", fifo_path);
ERROR("Unable to create monitor fifo directory %s", fifo_path);
free(rundir);
return ret;
}
......
......@@ -34,7 +34,6 @@ int lxc_raw_execveat(int dirfd, const char *pathname, char *const argv[],
*/
pid_t lxc_raw_clone(unsigned long flags)
{
/*
* These flags don't interest at all so we don't jump through any hoopes
* of retrieving them and passing them to the kernel.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment