projects
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b3510d
)
simplify control flow
author
Matthias-Christian Ott
<ott@enolink.de>
Mon, 2 Jun 2008 18:01:35 +0000
(20:01 +0200)
committer
Matthias-Christian Ott
<ott@enolink.de>
Mon, 2 Jun 2008 18:01:35 +0000
(20:01 +0200)
std.c
patch
|
blob
|
history
diff --git
a/std.c
b/std.c
index
53cbd2d
..
5368f67
100644
(file)
--- a/
std.c
+++ b/
std.c
@@
-109,11
+109,9
@@
getpty(void) {
ptm = posix_openpt(O_RDWR);
#else
ptm = open("/dev/ptmx", O_RDWR);
- if(ptm == -1)
{
+ if(ptm == -1)
if(openpty(&ptm, &pts, NULL, NULL, NULL) == -1)
eprintn("error, cannot open pty");
- return;
- }
#endif
#if defined(_XOPEN_SOURCE)
if(ptm != -1) {