parse-util: introduce parse_ifindex() and make use of it everywhere
authorLennart Poettering <lennart@poettering.net>
Mon, 2 Nov 2015 22:57:21 +0000 (23:57 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 Nov 2015 23:02:00 +0000 (00:02 +0100)
commit6ad623a3f77e087e308f334525fd4046811f2a9a
tree1030c9d7eb6e88cc605c36ed50901d4527a4fcf1
parent6a37c684695befff2d2ce7e0fcce90e25e2e252c
parse-util: introduce parse_ifindex() and make use of it everywhere

We have enough places where we parse an ifindex, hence introduce a
proper parsing function for it, that verifies all parameters.
src/basic/parse-util.c
src/basic/parse-util.h
src/libsystemd/sd-device/sd-device.c
src/libsystemd/sd-login/sd-login.c
src/machine/machine.c
src/network/networkctl.c
src/network/networkd-link-bus.c
src/resolve-host/resolve-host.c