mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Go back to a 2 args debug_decl and just use the "default" instance,
now renamed "active".
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2014 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
* Copyright (c) 2011-2015 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -119,7 +119,7 @@ tcsetattr_nobg(int fd, int flags, struct termios *tp)
|
||||
bool
|
||||
sudo_term_restore_v1(int fd, bool flush)
|
||||
{
|
||||
debug_decl(term_restore, SUDO_DEBUG_UTIL, SUDO_DEBUG_INSTANCE_DEFAULT)
|
||||
debug_decl(term_restore, SUDO_DEBUG_UTIL)
|
||||
|
||||
if (changed) {
|
||||
const int flags = flush ? (TCSASOFT|TCSAFLUSH) : (TCSASOFT|TCSADRAIN);
|
||||
@@ -137,7 +137,7 @@ sudo_term_restore_v1(int fd, bool flush)
|
||||
bool
|
||||
sudo_term_noecho_v1(int fd)
|
||||
{
|
||||
debug_decl(term_noecho, SUDO_DEBUG_UTIL, SUDO_DEBUG_INSTANCE_DEFAULT)
|
||||
debug_decl(term_noecho, SUDO_DEBUG_UTIL)
|
||||
|
||||
again:
|
||||
if (!changed && tcgetattr(fd, &oterm) != 0)
|
||||
@@ -167,7 +167,7 @@ bool
|
||||
sudo_term_raw_v1(int fd, int isig)
|
||||
{
|
||||
struct termios term;
|
||||
debug_decl(term_raw, SUDO_DEBUG_UTIL, SUDO_DEBUG_INSTANCE_DEFAULT)
|
||||
debug_decl(term_raw, SUDO_DEBUG_UTIL)
|
||||
|
||||
again:
|
||||
if (!changed && tcgetattr(fd, &oterm) != 0)
|
||||
@@ -200,7 +200,7 @@ again:
|
||||
bool
|
||||
sudo_term_cbreak_v1(int fd)
|
||||
{
|
||||
debug_decl(term_cbreak, SUDO_DEBUG_UTIL, SUDO_DEBUG_INSTANCE_DEFAULT)
|
||||
debug_decl(term_cbreak, SUDO_DEBUG_UTIL)
|
||||
|
||||
again:
|
||||
if (!changed && tcgetattr(fd, &oterm) != 0)
|
||||
@@ -238,7 +238,7 @@ bool
|
||||
sudo_term_copy_v1(int src, int dst)
|
||||
{
|
||||
struct termios tt;
|
||||
debug_decl(term_copy, SUDO_DEBUG_UTIL, SUDO_DEBUG_INSTANCE_DEFAULT)
|
||||
debug_decl(term_copy, SUDO_DEBUG_UTIL)
|
||||
|
||||
again:
|
||||
if (tcgetattr(src, &tt) != 0)
|
||||
|
Reference in New Issue
Block a user