]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
utf8: Change return value to `bool`.
authorFlorian Forster <octo@collectd.org>
Fri, 22 Dec 2023 14:26:53 +0000 (15:26 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 28 Dec 2023 08:53:22 +0000 (09:53 +0100)
src/utils/utf8/utf8.c
src/utils/utf8/utf8.h

index e5c1d55a25eb5c65abd4c9916889bbef7c198356..2d3bd89b9e6f37b88f2750e48e9affab688e1898 100644 (file)
@@ -56,7 +56,7 @@ static uint32_t decode(uint32_t *state, uint32_t *codep, uint32_t byte) {
   return *state;
 }
 
-int utf8_valid(char const *s) {
+bool utf8_valid(char const *s) {
   uint32_t codepoint, state = 0;
 
   while (*s)
index 0cb09f58fa11e256cb6b7f3fe992443e0771389e..d787187f3024bbd40017c41cfd7fd3b38105bc4a 100644 (file)
@@ -25,6 +25,6 @@
 
 #include "collectd.h"
 
-int utf8_valid(char const *s);
+bool utf8_valid(char const *s);
 
 #endif