]> git.proxmox.com Git - mirror_lxc.git/commitdiff
terminal: s/MAXPATHLEN/PATH_MAX/g
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 7 Oct 2018 08:03:55 +0000 (10:03 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 7 Oct 2018 08:03:55 +0000 (10:03 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/terminal.h

index d1d404a6f1f9df53777537c8e8e2fbc650a4e179..ef09d50d295d5048a257154ad20e2570562262a9 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdio.h>
 
 #include "list.h"
+#include "macro.h"
 #include "ringbuf.h"
 
 struct lxc_container;
@@ -36,7 +37,7 @@ struct lxc_epoll_descr;
 
 struct lxc_terminal_info {
        /* the path name of the slave side */
-       char name[MAXPATHLEN];
+       char name[PATH_MAX];
 
        /* the file descriptor of the master */
        int master;
@@ -89,7 +90,7 @@ struct lxc_terminal {
        struct lxc_terminal_info proxy;
        struct lxc_epoll_descr *descr;
        char *path;
-       char name[MAXPATHLEN];
+       char name[PATH_MAX];
        struct termios *tios;
        struct lxc_terminal_state *tty_state;