blob: 23fa5600d940e6c666c7de06446f93c254238d43 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/src/netinfo.c
2+++ b/src/netinfo.c
3@@ -113,7 +113,7 @@ mc_net_info_get_permanent_mac (const net
4 epa->size = IFHWADDRLEN;
5
6 memcpy(&req, &(net->dev), sizeof(struct ifreq));
7- req.ifr_data = (caddr_t)epa;
8+ req.ifr_data = (char *)epa;
9
10 if (ioctl(net->sock, SIOCETHTOOL, &req) < 0) {
11 perror ("[ERROR] Could not read permanent MAC");