chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove repeated includes
[elogind.git]
/
src
/
shared
/
pty.c
diff --git
a/src/shared/pty.c
b/src/shared/pty.c
index 11d76f825fd890d2569ba52924cf035047816424..adcb32d0be733af138ceb7bec97821065d6cb016 100644
(file)
--- a/
src/shared/pty.c
+++ b/
src/shared/pty.c
@@
-45,7
+45,7
@@
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
-#include <
pty
.h>
+#include <
linux/ioctl
.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
@@
-105,6
+105,7
@@
int pty_new(Pty **out) {
pty->ref = 1;
pty->fd = -1;
pty->ref = 1;
pty->fd = -1;
+ pty->barrier = (Barrier) BARRIER_NULL;
pty->fd = posix_openpt(O_RDWR | O_NOCTTY | O_CLOEXEC | O_NONBLOCK);
if (pty->fd < 0)
pty->fd = posix_openpt(O_RDWR | O_NOCTTY | O_CLOEXEC | O_NONBLOCK);
if (pty->fd < 0)
@@
-127,7
+128,7
@@
int pty_new(Pty **out) {
if (r < 0)
return -errno;
if (r < 0)
return -errno;
- r = barrier_
init
(&pty->barrier);
+ r = barrier_
create
(&pty->barrier);
if (r < 0)
return r;
if (r < 0)
return r;