]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
string-util: update ptr declaration to match our coding style
authorMike Yuan <me@yhndnzj.com>
Sun, 18 Aug 2024 10:05:11 +0000 (12:05 +0200)
committerMike Yuan <me@yhndnzj.com>
Sun, 18 Aug 2024 14:41:44 +0000 (16:41 +0200)
src/basic/string-util.h

index eb1cd2d9e96cf70b5847f824d5332aeb87a88fc8..0f6e0b72bfbfb91514ca04d9c504a662b8c348b0 100644 (file)
@@ -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 charcharset) {
+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 voidmemory_startswith_no_case(const void *p, size_t sz, const char *token) {
         assert(token);
 
         size_t n = strlen(token);