[Git][slirp/libslirp][master] 2 commits: arp_table: use size_t to index arrays.

Samuel Thibault (@sthibaul) gitlab at gitlab.freedesktop.org
Mon Nov 11 14:41:16 UTC 2024



Samuel Thibault pushed to branch master at slirp / libslirp


Commits:
ad6efd0d by B. Scott Michel at 2024-11-10T22:56:29-08:00
arp_table: use size_t to index arrays.

- - - - -
2581b174 by Samuel Thibault at 2024-11-11T14:41:13+00:00
Merge branch 'arp-c-cleanups' into 'master'

arp_table: use size_t to index arrays.

See merge request slirp/libslirp!142
- - - - -


1 changed file:

- src/arp_table.c


Changes:

=====================================
src/arp_table.c
=====================================
@@ -33,7 +33,7 @@ void arp_table_add(Slirp *slirp, uint32_t ip_addr,
     const uint32_t broadcast_addr =
         ~slirp->vnetwork_mask.s_addr | slirp->vnetwork_addr.s_addr;
     ArpTable *arptbl = &slirp->arp_table;
-    int i;
+    size_t i;
     char ethaddr_str[ETH_ADDRSTRLEN];
     char addr[INET_ADDRSTRLEN];
 
@@ -69,7 +69,7 @@ bool arp_table_search(Slirp *slirp, uint32_t ip_addr,
     const uint32_t broadcast_addr =
         ~slirp->vnetwork_mask.s_addr | slirp->vnetwork_addr.s_addr;
     ArpTable *arptbl = &slirp->arp_table;
-    int i;
+    size_t i;
     char ethaddr_str[ETH_ADDRSTRLEN];
     char addr[INET_ADDRSTRLEN];
 



View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/c706fd09076530da56e8a70022472e0636bcf1c9...2581b174e61165f56f68b7c594197363cc31b9e4

-- 
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/c706fd09076530da56e8a70022472e0636bcf1c9...2581b174e61165f56f68b7c594197363cc31b9e4
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20241111/834123d1/attachment-0001.htm>


More information about the Slirp mailing list