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);
lxc_log_define(lxc_monitord, lxc);
-static struct lxc_monitor mon;
-
static void lxc_monitord_cleanup(void);
/*
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];
* 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)) {
* 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);
}
#include "../config.h"
-const char const* lxc_version(void)
+const char *lxc_version(void)
{
return PACKAGE_VERSION;
}
/*
* Returns the version number of the library
*/
-extern const char const *lxc_version(void);
+extern const char *lxc_version(void);
#endif