diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-08 12:59:07 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-10 17:35:38 +0900 |
commit | d2d30bfbef26707f9158cbc31d5763a9a1d4ab2d (patch) | |
tree | 6d2d4502d6fbe4d6810bfb7bcf297cbf995d3db8 /languages/cpp/debugger/stty.cpp | |
parent | b9618de13e8f38c3558e9ed393a75c1f13af665c (diff) | |
download | tdevelop-r14.1.4.tar.gz tdevelop-r14.1.4.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 5198c9d3ac02aa9c7949f49e3cf374f683facb18)
Diffstat (limited to 'languages/cpp/debugger/stty.cpp')
-rw-r--r-- | languages/cpp/debugger/stty.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/languages/cpp/debugger/stty.cpp b/languages/cpp/debugger/stty.cpp index 517430da..c4b3023b 100644 --- a/languages/cpp/debugger/stty.cpp +++ b/languages/cpp/debugger/stty.cpp @@ -150,7 +150,7 @@ STTY::~STTY() int STTY::findTTY() { int ptyfd = -1; - bool needGrantPty = TRUE; + bool needGrantPty = true; // Find a master pty that we can open //////////////////////////////// @@ -163,7 +163,7 @@ int STTY::findTTY() strncpy(tty_slave, ptsname(ptyfd), 50); grantpt(ptyfd); unlockpt(ptyfd); - needGrantPty = FALSE; + needGrantPty = false; #endif // first we try UNIX PTY's @@ -177,7 +177,7 @@ int STTY::findTTY() struct stat sbuf; sprintf(tty_slave,"/dev/pts/%d",ptyno); if (stat(tty_slave,&sbuf) == 0 && S_ISCHR(sbuf.st_mode)) - needGrantPty = FALSE; + needGrantPty = false; else { close(ptyfd); ptyfd = -1; @@ -222,7 +222,7 @@ int STTY::findTTY() } if (ptyfd >= 0) { - if (needGrantPty && !chownpty(ptyfd, TRUE)) { + if (needGrantPty && !chownpty(ptyfd, true)) { fprintf(stderr,"tdevelop: chownpty failed for device %s::%s.\n",pty_master,tty_slave); fprintf(stderr," : This means the session can be eavesdroped.\n"); fprintf(stderr," : Make sure konsole_grantpty is installed and setuid root.\n"); |