Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
e9a55b51
Unverified
Commit
e9a55b51
authored
Feb 28, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
terminal: non-functional changes
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
d712f9e8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
terminal.c
src/lxc/terminal.c
+12
-12
terminal.h
src/lxc/terminal.h
+0
-0
No files found.
src/lxc/terminal.c
View file @
e9a55b51
...
@@ -1162,22 +1162,22 @@ int lxc_terminal_prepare_login(int fd)
...
@@ -1162,22 +1162,22 @@ int lxc_terminal_prepare_login(int fd)
return
0
;
return
0
;
}
}
void
lxc_terminal_info_init
(
struct
lxc_terminal_info
*
pty
)
void
lxc_terminal_info_init
(
struct
lxc_terminal_info
*
terminal
)
{
{
pty
->
name
[
0
]
=
'\0'
;
terminal
->
name
[
0
]
=
'\0'
;
pty
->
master
=
-
EBADF
;
terminal
->
master
=
-
EBADF
;
pty
->
slave
=
-
EBADF
;
terminal
->
slave
=
-
EBADF
;
pty
->
busy
=
-
1
;
terminal
->
busy
=
-
1
;
}
}
void
lxc_terminal_init
(
struct
lxc_terminal
*
pty
)
void
lxc_terminal_init
(
struct
lxc_terminal
*
terminal
)
{
{
memset
(
pty
,
0
,
sizeof
(
*
pty
));
memset
(
terminal
,
0
,
sizeof
(
*
terminal
));
pty
->
slave
=
-
EBADF
;
terminal
->
slave
=
-
EBADF
;
pty
->
master
=
-
EBADF
;
terminal
->
master
=
-
EBADF
;
pty
->
peer
=
-
EBADF
;
terminal
->
peer
=
-
EBADF
;
pty
->
log_fd
=
-
EBADF
;
terminal
->
log_fd
=
-
EBADF
;
lxc_terminal_info_init
(
&
pty
->
proxy
);
lxc_terminal_info_init
(
&
terminal
->
proxy
);
}
}
void
lxc_terminal_conf_free
(
struct
lxc_terminal
*
terminal
)
void
lxc_terminal_conf_free
(
struct
lxc_terminal
*
terminal
)
...
...
src/lxc/terminal.h
View file @
e9a55b51
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment