diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-12-14 08:59:37 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-12-15 18:23:13 +0100 |
commit | 2b0f5113b45d0514477beecd0b5d6e5e21d5777b (patch) | |
tree | dac582d13b1e9abe8703312525818696405f225e /src/udev/ata_id | |
parent | udev: rename UTIL_LINE_SIZE -> UDEV_LINE_SIZE and friends (diff) | |
download | systemd-2b0f5113b45d0514477beecd0b5d6e5e21d5777b.tar.xz systemd-2b0f5113b45d0514477beecd0b5d6e5e21d5777b.zip |
udev: use encode_devnode_name() instead of udev_util_encode_string()
As udev_util_encode_string() is a simple wrapper of
encode_devnode_name().
Diffstat (limited to 'src/udev/ata_id')
-rw-r--r-- | src/udev/ata_id/ata_id.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udev/ata_id/ata_id.c b/src/udev/ata_id/ata_id.c index 9d22be81b2..0a7df45761 100644 --- a/src/udev/ata_id/ata_id.c +++ b/src/udev/ata_id/ata_id.c @@ -23,6 +23,7 @@ #include <sys/types.h> #include <unistd.h> +#include "device-nodes.h" #include "fd-util.h" #include "libudev-util.h" #include "log.h" @@ -483,7 +484,7 @@ int main(int argc, char *argv[]) { memcpy(model, id.model, 40); model[40] = '\0'; - udev_util_encode_string(model, model_enc, sizeof(model_enc)); + encode_devnode_name(model, model_enc, sizeof(model_enc)); udev_replace_whitespace((char *) id.model, model, 40); udev_replace_chars(model, NULL); udev_replace_whitespace((char *) id.serial_no, serial, 20); |