diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-11-09 11:12:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-11-13 10:47:15 +0100 |
commit | 7546145e26e4feecf0994d84e888d7da9c47424b (patch) | |
tree | 569506c6a090d0e18cbc55f21511b16f051e4d69 /src/udev/udevadm-test-builtin.c | |
parent | conf-parser: reindent some strangely indented function headers (diff) | |
download | systemd-7546145e26e4feecf0994d84e888d7da9c47424b.tar.xz systemd-7546145e26e4feecf0994d84e888d7da9c47424b.zip |
string-util: add delete_trailing_chars() and skip_leading_chars() helpers
And let's port over a couple of users to the new APIs.
Diffstat (limited to 'src/udev/udevadm-test-builtin.c')
-rw-r--r-- | src/udev/udevadm-test-builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevadm-test-builtin.c b/src/udev/udevadm-test-builtin.c index b5662be5c2..3bcd09061a 100644 --- a/src/udev/udevadm-test-builtin.c +++ b/src/udev/udevadm-test-builtin.c @@ -85,7 +85,7 @@ static int adm_builtin(struct udev *udev, int argc, char *argv[]) { strscpyl(filename, sizeof(filename), "/sys", syspath, NULL); else strscpy(filename, sizeof(filename), syspath); - util_remove_trailing_chars(filename, '/'); + delete_trailing_chars(filename, "/"); dev = udev_device_new_from_syspath(udev, filename); if (dev == NULL) { |