Files
packages/admin
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
..
2024-01-29 16:00:33 -08:00
2024-02-20 15:49:07 +08:00
2024-01-15 17:13:28 +02:00
2024-01-31 16:00:10 -08:00
2023-08-05 23:02:09 +02:00
2023-04-21 22:46:58 +02:00
2023-04-21 22:46:58 +02:00
2023-07-07 13:29:50 +02:00
2024-02-07 13:58:20 -08:00
2024-02-02 22:35:50 +01:00