diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-05-09 15:55:09 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-06-16 19:07:34 +0200 |
commit | 7ff7161044552a9802d2fe57c234faae147f0d01 (patch) | |
tree | c2cff4aa1b8882a2eb875cd5e22ff3d881032a8f /src/basic/utf8.h | |
parent | Merge pull request #33214 from keszybz/system-clock-epoch (diff) | |
download | systemd-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.h | 6 |
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); |