summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-04-11 09:12:21 +0200
committerGitHub <noreply@github.com>2023-04-11 09:12:21 +0200
commit7cb9ed5d382d40e5ec5ae30049fbf28ead4a9f73 (patch)
tree9b5cfb03d60f99267727a104679db49c84566dd4 /src/shared
parentchase: drop redundant call of delete_trailing_chars() (diff)
parenttest: update description (diff)
downloadsystemd-7cb9ed5d382d40e5ec5ae30049fbf28ead4a9f73.tar.xz
systemd-7cb9ed5d382d40e5ec5ae30049fbf28ead4a9f73.zip
Merge pull request #27206 from yuwata/udev-rename
udev: rename arguments and options, update comments
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/device-nodes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/device-nodes.c b/src/shared/device-nodes.c
index 40e469379f..bdbbb98c2c 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) {