1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-21 05:57:34 +03:00

device-nodes: rename argument

This commit is contained in:
Yu Watanabe 2023-04-11 05:53:58 +09:00
parent 1dec1c6163
commit 8352a29b6d

View File

@ -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) {