summaryrefslogtreecommitdiffstats
path: root/src/rfkill
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-09-01 16:03:22 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-09-23 10:18:50 +0200
commit403660c508153a65ac3738b1f0884c74feb4acf6 (patch)
treeaebc3321591d28bd3347821650adc48136940ff7 /src/rfkill
parentsd-device: make sd_device_get_*() return -ENOENT if the values are not set (diff)
downloadsystemd-403660c508153a65ac3738b1f0884c74feb4acf6.tar.xz
systemd-403660c508153a65ac3738b1f0884c74feb4acf6.zip
tree-wide: use streq() instead of streq_ptr()
Diffstat (limited to 'src/rfkill')
-rw-r--r--src/rfkill/rfkill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rfkill/rfkill.c b/src/rfkill/rfkill.c
index 36b82a4c92..7939c2d2fe 100644
--- a/src/rfkill/rfkill.c
+++ b/src/rfkill/rfkill.c
@@ -149,7 +149,7 @@ static int wait_for_initialized(
if (r < 0)
continue;
- if (sd_device_get_sysname(t, &name) >= 0 && streq_ptr(name, sysname)) {
+ if (sd_device_get_sysname(t, &name) >= 0 && streq(name, sysname)) {
*ret = TAKE_PTR(t);
return 0;
}