From: Yu Watanabe Date: Mon, 10 Apr 2023 20:53:58 +0000 (+0900) Subject: device-nodes: rename argument X-Git-Tag: v254-rc1~764^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8352a29b6d8cecdcfa61c44f898aac76b3183e27;p=thirdparty%2Fsystemd.git device-nodes: rename argument --- diff --git a/src/shared/device-nodes.c b/src/shared/device-nodes.c index 40e469379f5..bdbbb98c2c8 100644 --- a/src/shared/device-nodes.c +++ b/src/shared/device-nodes.c @@ -8,12 +8,12 @@ #include "string-util.h" #include "utf8.h" -int allow_listed_char_for_devnode(char c, const char *white) { +int allow_listed_char_for_devnode(char c, const char *additional) { return ascii_isdigit(c) || ascii_isalpha(c) || strchr("#+-.:=@_", c) || - (white && strchr(white, c)); + (additional && strchr(additional, c)); } int encode_devnode_name(const char *str, char *str_enc, size_t len) {