odhcpd: reduce use of WITH_UBUS defines in code
authorDavid Härdeman <[email protected]>
Tue, 7 Oct 2025 11:18:21 +0000 (13:18 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 9 Oct 2025 06:48:13 +0000 (08:48 +0200)
commit9bc1b4e26e105f2c1b5bf9f593fae8f982f99241
treed644350e17985be049936eed7bfa999c92c6a242
parentd402cdae431668f55f9d82b7072b0afa3b8090df
odhcpd: reduce use of WITH_UBUS defines in code

By defining some dummy functions in the header file, we can avoid sprinkling
WITH_UBUS defines through the code, which helps readability and also ensures
that compilation errors (e.g. when a variable is renamed) is caught in builds
with and without ubus.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/270/
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/config.c
src/dhcpv4.c
src/odhcpd.h