diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-08-18 12:05:11 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-08-18 16:41:44 +0200 |
commit | f0f044a4562126d8f9700182b5aa751eb1d76221 (patch) | |
tree | 8fe536c7db2cb88bf7420d84c9a1fef1f0db657a | |
parent | basic/process-util: modernize setpriority_closest() (diff) | |
download | systemd-f0f044a4562126d8f9700182b5aa751eb1d76221.tar.xz systemd-f0f044a4562126d8f9700182b5aa751eb1d76221.zip |
string-util: update ptr declaration to match our coding style
-rw-r--r-- | src/basic/string-util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/string-util.h b/src/basic/string-util.h index eb1cd2d9e9..0f6e0b72bf 100644 --- a/src/basic/string-util.h +++ b/src/basic/string-util.h @@ -156,7 +156,7 @@ int ascii_strcasecmp_nn(const char *a, size_t n, const char *b, size_t m); bool chars_intersect(const char *a, const char *b) _pure_; -static inline bool _pure_ in_charset(const char *s, const char* charset) { +static inline bool _pure_ in_charset(const char *s, const char *charset) { assert(s); assert(charset); return s[strspn(s, charset)] == '\0'; @@ -248,7 +248,7 @@ REENABLE_WARNING; /* Like startswith_no_case(), but operates on arbitrary memory blocks. * It works only for ASCII strings. */ -static inline void *memory_startswith_no_case(const void *p, size_t sz, const char *token) { +static inline void* memory_startswith_no_case(const void *p, size_t sz, const char *token) { assert(token); size_t n = strlen(token); |