Skip to content

Commit

Permalink
lsm: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Sep 30, 2018
1 parent 85c427f commit d7451b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/lxc/lsm/lsm.h
Expand Up @@ -28,10 +28,9 @@ struct lxc_conf;

#include <sys/types.h>

#include "macro.h"
#include "utils.h"

#define LXC_LSMATTRLEN (5 + (LXC_NUMSTRLEN64) + 7 + 1)

struct lsm_drv {
const char *name;

Expand Down
1 change: 1 addition & 0 deletions src/lxc/macro.h
Expand Up @@ -139,6 +139,7 @@
/* /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)
#define LXC_LSMATTRLEN (5 + (INTTYPE_TO_STRLEN(pid_t)) + 7 + 1)

/* loop devices */
#ifndef LO_FLAGS_AUTOCLEAR
Expand Down

0 comments on commit d7451b2

Please sign in to comment.