Skip to content

Commit

Permalink
terminal: s/MAXPATHLEN/PATH_MAX/g
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 Oct 7, 2018
1 parent 1963eb8 commit 1d11cb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lxc/terminal.h
Expand Up @@ -28,6 +28,7 @@
#include <stdio.h>

#include "list.h"
#include "macro.h"
#include "ringbuf.h"

struct lxc_container;
Expand All @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 1d11cb6

Please sign in to comment.