aboutsummaryrefslogtreecommitdiff
path: root/std.c
diff options
context:
space:
mode:
authorMatthias-Christian Ott <ott@enolink.de>2008-06-02 20:01:35 +0200
committerMatthias-Christian Ott <ott@enolink.de>2008-06-02 20:01:35 +0200
commit693e2413c8c114c6a95327a609c28be643b9d582 (patch)
tree7c9ed81ed29d296e3d633106717a830a275b31d1 /std.c
parent0b3510df45057bf63f0e3b5ce225ff4491912bb8 (diff)
downloadst-693e2413c8c114c6a95327a609c28be643b9d582.tar.gz
st-693e2413c8c114c6a95327a609c28be643b9d582.tar.bz2
simplify control flow
Diffstat (limited to 'std.c')
-rw-r--r--std.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/std.c b/std.c
index 53cbd2d..5368f67 100644
--- 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) {