]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
macro: move LXC_CMD_DATA_MAX from commands.h
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 25 Aug 2018 09:30:39 +0000 (11:30 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 28 Aug 2018 18:14:52 +0000 (20:14 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/commands.h
src/lxc/macro.h

index 816cd7483c1ef46d49a64530538760f69541069c..24c0a22d88845e608647331c09f70488d9a7b40b 100644 (file)
 #define __LXC_COMMANDS_H
 
 #include <stdio.h>
-#include <unistd.h>
 #include <sys/types.h>
+#include <unistd.h>
 
-#include "state.h"
 #include "lxccontainer.h"
-
-#define LXC_CMD_DATA_MAX (MAXPATHLEN * 2)
-
 /* https://developer.gnome.org/glib/2.28/glib-Type-Conversion-Macros.html */
 #define INT_TO_PTR(n) ((void *)(long)(n))
 #define PTR_TO_INT(p) ((int)(long)(p))
+#include "macro.h"
+#include "state.h"
 
 typedef enum {
        LXC_CMD_CONSOLE,
index aa1d5478cffe21833fb44224ee2bce63319d102e..6bdda6e3ea67a850f6da6afbebcc818bad00daa0 100644 (file)
 #define LXC_PROC_PID_FD_LEN (6 + LXC_NUMSTRLEN64 + 4 + LXC_NUMSTRLEN64 + 1)
 /* /proc/pid-to-str/status\0 = (5 + 21 + 7 + 1) */
 #define LXC_PROC_STATUS_LEN (5 + (LXC_NUMSTRLEN64) + 7 + 1)
+#define LXC_CMD_DATA_MAX (MAXPATHLEN * 2)
 
 /* loop devices */
 #ifndef LO_FLAGS_AUTOCLEAR