termptyesc: use Eina_Bool for booleans

This commit is contained in:
Boris Faure 2021-11-02 23:28:04 +01:00
parent 4196fc944b
commit 93b6d77944
Signed by untrusted user who does not match committer: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 5 additions and 3 deletions

View File

@ -282,13 +282,15 @@ static void
_handle_esc_csi_reset_mode(Termpty *ty, Eina_Unicode cc, Eina_Unicode *b,
const Eina_Unicode * const end)
{
int mode = 0, priv = 0, arg;
Eina_Bool mode = EINA_FALSE;
Eina_Bool priv = EINA_FALSE;
int arg;
if (cc == 'h')
mode = 1;
mode = EINA_TRUE;
if (*b == '?')
{
priv = 1;
priv = EINA_TRUE;
b++;
}
if (priv) /* DEC Private Mode Reset (DECRST) */