Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
lxc_info_SOURCES = tools/lxc_info.c \
tools/arguments.c tools/arguments.h
lxc_monitor_SOURCES = tools/lxc_monitor.c \
+ macro.h \
tools/arguments.c tools/arguments.h
lxc_ls_SOURCES = tools/lxc_ls.c \
tools/arguments.c tools/arguments.h
#include "af_unix.h"
#include "arguments.h"
#include "log.h"
+#include "macro.h"
#include "monitor.h"
#include "state.h"
#include "utils.h"
{
int ret;
int pipefd[2];
- char pipefd_str[LXC_NUMSTRLEN64];
+ char pipefd_str[INTTYPE_TO_STRLEN(int)];
pid_t pid1, pid2;
char *const args[] = {
close(pipefd[0]);
- ret = snprintf(pipefd_str, LXC_NUMSTRLEN64, "%d", pipefd[1]);
- if (ret < 0 || ret >= LXC_NUMSTRLEN64) {
+ ret = snprintf(pipefd_str, INTTYPE_TO_STRLEN(int), "%d", pipefd[1]);
+ if (ret < 0 || ret >= INTTYPE_TO_STRLEN(int)) {
ERROR("Failed to create pid argument to pass to monitord");
_exit(EXIT_FAILURE);
}