diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-07-16 15:20:57 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-07-16 18:38:03 +0200 |
commit | fe20121a4c36bdd26465b22805016e4596457881 (patch) | |
tree | cc0929294fc3004d758aa702db9e5f98116b84a8 /src/libsystemd/sd-device/device-internal.h | |
parent | udev: tweak debug logs for udev rules (diff) | |
download | systemd-fe20121a4c36bdd26465b22805016e4596457881.tar.xz systemd-fe20121a4c36bdd26465b22805016e4596457881.zip |
sd-device: use strjoin instead of asprintf
strjoin should be faster for string concatenation.
Also drop "_"-prefix from function prototypes.
Diffstat (limited to 'src/libsystemd/sd-device/device-internal.h')
-rw-r--r-- | src/libsystemd/sd-device/device-internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-device/device-internal.h b/src/libsystemd/sd-device/device-internal.h index 023fe0fcd7..1fe5c1a6bf 100644 --- a/src/libsystemd/sd-device/device-internal.h +++ b/src/libsystemd/sd-device/device-internal.h @@ -94,8 +94,8 @@ int device_read_uevent_file(sd_device *device); int device_set_syspath(sd_device *device, const char *_syspath, bool verify); int device_set_ifindex(sd_device *device, const char *ifindex); int device_set_devmode(sd_device *device, const char *devmode); -int device_set_devname(sd_device *device, const char *_devname); -int device_set_devtype(sd_device *device, const char *_devtype); +int device_set_devname(sd_device *device, const char *devname); +int device_set_devtype(sd_device *device, const char *devtype); int device_set_devnum(sd_device *device, const char *major, const char *minor); int device_set_subsystem(sd_device *device, const char *_subsystem); int device_set_driver(sd_device *device, const char *_driver); |