openwrt-packages/admin/zabbix/files
Tony Ambardar 3cf17ad130 zabbix: zabbix_helper_mac80211.c: use POSIX <libgen.h> header
The musl libc only implements POSIX basename() but provided a GNU header
kludge in <string.h>, which was removed in musl 1.2.5 [1]. Use the standard
<libgen.h> header to avoid compilation warnings like:

zabbix-6.4.7/zabbix-extra-mac80211/zabbix_helper_mac80211.c:37:11: warning:
 implicit declaration of function 'basename' [-Wimplicit-function-declaration]
   37 |     phy = basename(phy);
      |           ^~~~~~~~
zabbix-6.4.7/zabbix-extra-mac80211/zabbix_helper_mac80211.c:37:9: warning:
 assignment to 'char *' from 'int' makes pointer from integer without a cast
 [-Wint-conversion]
   37 |     phy = basename(phy);
      |         ^
zabbix-6.4.7/zabbix-extra-mac80211/zabbix_helper_mac80211.c:38:10: warning:
 assignment to 'char *' from 'int' makes pointer from integer without a cast
 [-Wint-conversion]
   38 |     stat = basename(stat);
      |          ^

Link 1: https://git.musl-libc.org/cgit/musl/log/?qt=grep&q=basename

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2024-03-06 05:44:46 -08:00
..
mac80211 treewide: update wiki links 2019-11-29 09:16:02 +08:00
network zabbix: fix 6in4 network interface discovery 2021-11-21 11:00:53 -05:00
wifi treewide: update wiki links 2019-11-29 09:16:02 +08:00
zabbix-network-ubus-acl.json zabbix: use ubus for zabbix-extra-network 2018-10-23 19:26:38 -04:00
zabbix-wifi-ubus-acl.json zabbix: add proper ubus acl for zabbix-extra-wifi 2018-10-23 11:14:51 -04:00
zabbix_agentd.init zabbix: update to zabbix 3.0.1 2016-04-09 17:24:17 +00:00
zabbix_helper_mac80211.c zabbix: zabbix_helper_mac80211.c: use POSIX <libgen.h> header 2024-03-06 05:44:46 -08:00