From d1ac67f6d73f24a165ccc008440bb8b208ae140f Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 16 May 2022 15:53:39 +0200 Subject: Decouple IO openssl's BIO abstraction and split connection and tls handling to allow for other TLS libs --- vchat-ui.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'vchat-ui.c') diff --git a/vchat-ui.c b/vchat-ui.c index 82a6840..745ada8 100755 --- a/vchat-ui.c +++ b/vchat-ui.c @@ -492,7 +492,7 @@ writescr ( WINDOW *win, struct sb_entry *entry ) { /* store original attributes */ WATTR_GET( win, orgattr); attrbuffer[ 0 ] = orgattr; - + /* copy time string */ for( i = 0; i < timelen; i++ ) if( tmp[ i ] == 1 ) { @@ -871,13 +871,13 @@ gettextwidth (const char *textbuffer) do switch( *(textbuffer++) ) { case 1: if (!*(textbuffer++)) return width; - break; + break; case 0: return width; break; - default: + default: width++; - break; + break; } while( 1 ); } @@ -920,20 +920,20 @@ getsbeheight (struct sb_entry *entry, const int xwidth, int needstime ) break; case 1: if (!*textbuffer++) return lines; - break; + break; case 0: return lines; break; case 2: textbuffer=entry->what; break; - default: + default: if( curx++ == xwidth ) { curx = 0; lines++; } - break; + break; } while( 1 ); - + } /* Check, which kind of filter we have to apply: -- cgit v1.2.3