summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2021-11-02 23:28:04 +0100
committerBoris Faure <billiob@gmail.com>2021-11-02 23:28:04 +0100
commit93b6d77944d31461fbcf1c3784164b5cb8142706 (patch)
tree68472f1b52dc80b39144d26dac6fc84b71f6b0d8
parent4196fc944bd888f5f7e34e9dd66f04018fb79f25 (diff)
termptyesc: use Eina_Bool for booleans
-rw-r--r--src/bin/termptyesc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 67c183e..a15dc73 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -282,13 +282,15 @@ static void
282_handle_esc_csi_reset_mode(Termpty *ty, Eina_Unicode cc, Eina_Unicode *b, 282_handle_esc_csi_reset_mode(Termpty *ty, Eina_Unicode cc, Eina_Unicode *b,
283 const Eina_Unicode * const end) 283 const Eina_Unicode * const end)
284{ 284{
285 int mode = 0, priv = 0, arg; 285 Eina_Bool mode = EINA_FALSE;
286 Eina_Bool priv = EINA_FALSE;
287 int arg;
286 288
287 if (cc == 'h') 289 if (cc == 'h')
288 mode = 1; 290 mode = EINA_TRUE;
289 if (*b == '?') 291 if (*b == '?')
290 { 292 {
291 priv = 1; 293 priv = EINA_TRUE;
292 b++; 294 b++;
293 } 295 }
294 if (priv) /* DEC Private Mode Reset (DECRST) */ 296 if (priv) /* DEC Private Mode Reset (DECRST) */