Merge pull request #27206 from yuwata/udev-rename

udev: rename arguments and options, update comments
This commit is contained in:
Daan De Meyer
2023-04-11 09:12:21 +02:00
committed by GitHub
8 changed files with 18 additions and 16 deletions
+2 -2
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) {