terminal: s/MAXPATHLEN/PATH_MAX/g

parent 1963eb8a
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <stdio.h> #include <stdio.h>
#include "list.h" #include "list.h"
#include "macro.h"
#include "ringbuf.h" #include "ringbuf.h"
struct lxc_container; struct lxc_container;
...@@ -36,7 +37,7 @@ struct lxc_epoll_descr; ...@@ -36,7 +37,7 @@ struct lxc_epoll_descr;
struct lxc_terminal_info { struct lxc_terminal_info {
/* the path name of the slave side */ /* the path name of the slave side */
char name[MAXPATHLEN]; char name[PATH_MAX];
/* the file descriptor of the master */ /* the file descriptor of the master */
int master; int master;
...@@ -89,7 +90,7 @@ struct lxc_terminal { ...@@ -89,7 +90,7 @@ struct lxc_terminal {
struct lxc_terminal_info proxy; struct lxc_terminal_info proxy;
struct lxc_epoll_descr *descr; struct lxc_epoll_descr *descr;
char *path; char *path;
char name[MAXPATHLEN]; char name[PATH_MAX];
struct termios *tios; struct termios *tios;
struct lxc_terminal_state *tty_state; struct lxc_terminal_state *tty_state;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment