diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-08-30 19:28:56 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-09-03 12:17:45 +0200 |
commit | 3834f2a68f167044256604d68aab8d4a5d5265d9 (patch) | |
tree | 243b5766306bf6cd5e24b6d8a1dd60c603fe1cd0 /netbsd | |
parent | 343c2e58be2c5091c2e69b135af9824f1eebc30a (diff) |
NetBSD: misc const additions
Diffstat (limited to 'netbsd')
-rw-r--r-- | netbsd/Platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netbsd/Platform.c b/netbsd/Platform.c index 70de2bd3..62d90edd 100644 --- a/netbsd/Platform.c +++ b/netbsd/Platform.c @@ -390,7 +390,7 @@ bool Platform_getNetworkIO(NetworkIOData* data) { if (getifaddrs(&ifaddrs) != 0) return false; - for (struct ifaddrs* ifa = ifaddrs; ifa; ifa = ifa->ifa_next) { + for (const struct ifaddrs* ifa = ifaddrs; ifa; ifa = ifa->ifa_next) { if (!ifa->ifa_addr) continue; if (ifa->ifa_addr->sa_family != AF_LINK) @@ -398,7 +398,7 @@ bool Platform_getNetworkIO(NetworkIOData* data) { if (ifa->ifa_flags & IFF_LOOPBACK) continue; - struct if_data* ifd = (struct if_data *)ifa->ifa_data; + const struct if_data* ifd = (const struct if_data *)ifa->ifa_data; data->bytesReceived += ifd->ifi_ibytes; data->packetsReceived += ifd->ifi_ipackets; |