From 8352a29b6d8cecdcfa61c44f898aac76b3183e27 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 11 Apr 2023 05:53:58 +0900 Subject: [PATCH] device-nodes: rename argument --- src/shared/device-nodes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.47.3