From: Tomas Mraz Date: Mon, 28 Apr 2025 14:00:32 +0000 (+0200) Subject: sslecho: Rename bool to flag to avoid C23 conflict X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81ce3d3ae8f6c4021e0dce86891e869efa1710db;p=thirdparty%2Fopenssl.git sslecho: Rename bool to flag to avoid C23 conflict Fixes #27516 Reviewed-by: Matt Caswell Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/27519) --- diff --git a/demos/sslecho/main.c b/demos/sslecho/main.c index 3e5bcadce3e..6db50b1b08d 100644 --- a/demos/sslecho/main.c +++ b/demos/sslecho/main.c @@ -23,7 +23,7 @@ static const int server_port = 4433; -typedef unsigned char bool; +typedef unsigned char flag; #define true 1 #define false 0 @@ -31,9 +31,9 @@ typedef unsigned char bool; * This flag won't be useful until both accept/read (TCP & SSL) methods * can be called with a timeout. TBD. */ -static volatile bool server_running = true; +static volatile flag server_running = true; -static int create_socket(bool isServer) +static int create_socket(flag isServer) { int s; int optval = 1; @@ -71,7 +71,7 @@ static int create_socket(bool isServer) return s; } -static SSL_CTX* create_context(bool isServer) +static SSL_CTX *create_context(flag isServer) { const SSL_METHOD *method; SSL_CTX *ctx; @@ -135,7 +135,7 @@ static void usage(void) #define BUFFERSIZE 1024 int main(int argc, char **argv) { - bool isServer; + flag isServer; int result; SSL_CTX *ssl_ctx = NULL;