Introduction
Introduction Statistics Contact Development Disclaimer Help
tsimplify control flow - st - [fork] customized build of st, the simple terminal
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 693e2413c8c114c6a95327a609c28be643b9d582
parent 0b3510df45057bf63f0e3b5ce225ff4491912bb8
Author: Matthias-Christian Ott <[email protected]>
Date: Mon, 2 Jun 2008 20:01:35 +0200
simplify control flow
Diffstat:
M std.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/std.c b/std.c
t@@ -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) {
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.