Files
wlan-ap/feeds/ucentral/ucentral-tools/Makefile
John Crispin fe850fc7e9 ucentral-tools: fix compiler warnings and modernize code
- Fixed format-nonliteral error in dnsprobe.c by using explicit format strings
- Fixed cast-qual error by preserving const qualifier in type casting
- Removed unused format variable and unused parameter warnings
- Updated parse_reply function signature to remove unused parameter
- Made string literals const for better type safety
- Fixed variable type warnings (unsigned long vs int)

These changes ensure the code compiles without warnings under strict
compiler flags including -Werror, -Wformat-nonliteral, -Wcast-qual,
-Wunused-parameter, and -Wunused-variable.

Signed-off-by: John Crispin <john@phrozen.org>
2025-09-12 07:17:13 +02:00

26 lines
601 B
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=ucentral-tools
PKG_RELEASE:=1
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
PKG_LICENSE:=BSD-3-Clause
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/ucentral-tools
SECTION:=ucentral
CATEGORY:=uCentral
TITLE:=ucentral tools collection
DEPENDS:=+libubox +libcurl +libradcli +libopenssl
endef
define Package/ucentral-tools/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/{dhcpdiscover,dnsprobe,radiusprobe} $(1)/usr/sbin/
$(CP) ./files/* $(1)
endef
$(eval $(call BuildPackage,ucentral-tools))