summaryrefslogtreecommitdiffstats
path: root/src/basic/utf8.h
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-05-09 15:55:09 +0200
committerMike Yuan <me@yhndnzj.com>2024-06-16 19:07:34 +0200
commit7ff7161044552a9802d2fe57c234faae147f0d01 (patch)
treec2cff4aa1b8882a2eb875cd5e22ff3d881032a8f /src/basic/utf8.h
parentMerge pull request #33214 from keszybz/system-clock-epoch (diff)
downloadsystemd-7ff7161044552a9802d2fe57c234faae147f0d01.tar.xz
systemd-7ff7161044552a9802d2fe57c234faae147f0d01.zip
basic/utf8: modernize utf8_is_valid_n a bit
Diffstat (limited to 'src/basic/utf8.h')
-rw-r--r--src/basic/utf8.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/utf8.h b/src/basic/utf8.h
index 962312c5fb..fbd3318987 100644
--- a/src/basic/utf8.h
+++ b/src/basic/utf8.h
@@ -14,9 +14,9 @@
bool unichar_is_valid(char32_t c);
-char *utf8_is_valid_n(const char *str, size_t len_bytes) _pure_;
-static inline char *utf8_is_valid(const char *s) {
- return utf8_is_valid_n(s, SIZE_MAX);
+char* utf8_is_valid_n(const char *str, size_t len_bytes) _pure_;
+static inline char* utf8_is_valid(const char *str) {
+ return utf8_is_valid_n(str, SIZE_MAX);
}
char *ascii_is_valid(const char *s) _pure_;
char *ascii_is_valid_n(const char *str, size_t len);