odhcpd: fix ubus support flag in help msg
authorDavid Härdeman <[email protected]>
Tue, 7 Oct 2025 11:39:25 +0000 (13:39 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 9 Oct 2025 06:48:28 +0000 (08:48 +0200)
The cmake definition is a bit sneaky, the cmake variable is "UBUS", but it
leads to "WITH_UBUS" being defined for the compilation.

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/odhcpd.c

index e0385480f7b643ce8d703e85731bf5183951fd6b..313dae1129b990232c4b01dd726da2057f87217d 100644 (file)
@@ -61,11 +61,11 @@ static void print_usage(const char *app)
 #else
               " no-dhcpv4"
 #endif /* DHCPV4_SUPPORT */
-#ifdef UBUS
+#ifdef WITH_UBUS
               " ubus"
 #else
               " no-ubus"
-#endif /* UBUS */
+#endif /* WITH_UBUS */
 #ifdef EXT_CER_ID
               " cer"
 #else