From bd0a76ccc483688b84f08a0ed1388ffef6cbe806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 11 Mar 2006 16:02:43 +0000 Subject: [PATCH] actually check errno instead of master git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16704 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/terminal/TermParse.cpp | 2 +- src/apps/terminal/spawn.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/terminal/TermParse.cpp b/src/apps/terminal/TermParse.cpp index c4dd657f69..c66cf06f4d 100644 --- a/src/apps/terminal/TermParse.cpp +++ b/src/apps/terminal/TermParse.cpp @@ -298,7 +298,7 @@ TermParse::EscParse(void *data) } parsestate = groundtable; now_coding = gNowCoding; - } + } switch (parsestate[c]) { case CASE_PRINT: diff --git a/src/apps/terminal/spawn.cpp b/src/apps/terminal/spawn.cpp index c3e59dd9d6..ec3dc2eebc 100644 --- a/src/apps/terminal/spawn.cpp +++ b/src/apps/terminal/spawn.cpp @@ -176,7 +176,7 @@ spawn_shell(int row, int col, const char *command, const char *coding) break; } else { // B_BUSY is a normal case - if (master != B_BUSY) + if (errno != B_BUSY) fprintf(stderr, "could not open %s: %s\n", ptyName, strerror(errno)); } }