]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device: return positive ifindex when sd_device_get_ifindex() succeeds
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 25 Oct 2018 00:56:15 +0000 (09:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 26 Oct 2018 22:03:38 +0000 (07:03 +0900)
commit1dfa960786d147d181c583b76847135ebe512d43
treef5832d5a4ab35dc4b54d0a491834f371ef2595f5
parent9bf7dba739379e6644a6950834f271f028a2e73f
sd-device: return positive ifindex when sd_device_get_ifindex() succeeds

As valid ifindex is positive value, not non-negative value.

Follow-up for dcfbde3a43d632ff6e286c77e1081087eca59d8e.
src/libsystemd/sd-device/device-enumerator.c
src/libsystemd/sd-device/sd-device.c