Skip to content

Commit

Permalink
tree-wide: coding style fixes
Browse files Browse the repository at this point in the history
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
[christian.brauner@ubuntu.com: cleanup if-branches in confile.c]
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
2xsec authored and Christian Brauner committed Oct 19, 2018
1 parent 2caf13c commit d05b59a
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/lxc/commands.c
Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions src/lxc/commands_utils.c
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}

0 comments on commit d05b59a

Please sign in to comment.