]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
examples/multi-debugcallback.c: avoid the bool typedef
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 Jun 2023 07:39:09 +0000 (09:39 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 15 Jun 2023 13:54:48 +0000 (15:54 +0200)
Apparently this cannot be done in c23

Reported-by: Cristian Rodríguez
Fixes #11299
Closes #11319

docs/examples/multi-debugcallback.c

index 32d4e57837bae7daf531e18a220303ec3308fdc8..8bdb58800fb1523a645801cefa8d82412ae02bef 100644 (file)
 /* curl stuff */
 #include <curl/curl.h>
 
-typedef char bool;
 #define TRUE 1
 
-static
-void dump(const char *text,
-          FILE *stream, unsigned char *ptr, size_t size,
-          bool nohex)
+static void dump(const char *text, FILE *stream, unsigned char *ptr,
+                 size_t size, char nohex)
 {
   size_t i;
   size_t c;