From: Christian Brauner Date: Sun, 7 Oct 2018 08:03:55 +0000 (+0200) Subject: terminal: s/MAXPATHLEN/PATH_MAX/g X-Git-Tag: lxc-3.1.0~62^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c880e57d76fb1c9accbe9360489d2f36bb6578a;p=thirdparty%2Flxc.git terminal: s/MAXPATHLEN/PATH_MAX/g Signed-off-by: Christian Brauner --- diff --git a/src/lxc/terminal.h b/src/lxc/terminal.h index d1d404a6f..ef09d50d2 100644 --- a/src/lxc/terminal.h +++ b/src/lxc/terminal.h @@ -28,6 +28,7 @@ #include #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;