Skip to content

Commit

Permalink
clang: Fix some simple issues
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
stgraber committed Oct 24, 2013
1 parent aea1cd3 commit 8f47bc3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/lxc/confile.c
Expand Up @@ -901,7 +901,7 @@ static int config_hook(const char *key, const char *value,
return -1;
}

static int config_personality(const char *key, const const char *value,
static int config_personality(const char *key, const char *value,
struct lxc_conf *lxc_conf)
{
signed long personality = lxc_config_parse_arch(value);
Expand Down
7 changes: 4 additions & 3 deletions src/lxc/lxc_monitord.c
Expand Up @@ -47,8 +47,6 @@

lxc_log_define(lxc_monitord, lxc);

static struct lxc_monitor mon;

static void lxc_monitord_cleanup(void);

/*
Expand All @@ -71,6 +69,8 @@ struct lxc_monitor {
struct lxc_epoll_descr descr;
};

static struct lxc_monitor mon;

static int lxc_monitord_fifo_create(struct lxc_monitor *mon)
{
char fifo_path[PATH_MAX];
Expand Down Expand Up @@ -379,7 +379,8 @@ int main(int argc, char *argv[])
* if-empty-statement construct is to quiet the
* warn-unused-result warning.
*/
if (write(pipefd, "S", 1)) ;
if (write(pipefd, "S", 1))
;
close(pipefd);

if (lxc_monitord_mainloop_add(&mon)) {
Expand Down
3 changes: 2 additions & 1 deletion src/lxc/monitor.c
Expand Up @@ -328,7 +328,8 @@ int lxc_monitord_spawn(const char *lxcpath)
* synced with the child process. the if-empty-statement
* construct is to quiet the warn-unused-result warning.
*/
if (read(pipefd[0], &c, 1)) ;
if (read(pipefd[0], &c, 1))
;
close(pipefd[0]);
exit(EXIT_SUCCESS);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lxc/version.c
Expand Up @@ -23,7 +23,7 @@

#include "../config.h"

const char const* lxc_version(void)
const char *lxc_version(void)
{
return PACKAGE_VERSION;
}
2 changes: 1 addition & 1 deletion src/lxc/version.h
Expand Up @@ -26,6 +26,6 @@
/*
* Returns the version number of the library
*/
extern const char const *lxc_version(void);
extern const char *lxc_version(void);

#endif

0 comments on commit 8f47bc3

Please sign in to comment.