Changeset 25375 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Dec 14, 2009 7:24:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/mbuf.c
r25067 r25375 20 20 static int mbuf_zone_init(PNATState pData) 21 21 { 22 int limit;23 22 struct mbuf_zone *mzone; 24 23 int i; … … 38 37 } 39 38 40 for (i = 0; i < MBUF_ZONE_SIZE; ++i)39 for (i = 0; i < MBUF_ZONE_SIZE; ++i) 41 40 { 42 41 m = (struct mbuf *)((char *)zone + i*msize); … … 64 63 mz = LIST_FIRST(&pData->mbuf_zone_head); 65 64 zone = mz->mbuf_zone_base_addr; 66 for (i = 0; i < MBUF_ZONE_SIZE; ++i)65 for (i = 0; i < MBUF_ZONE_SIZE; ++i) 67 66 { 68 67 m = (struct mbuf *)((char *)zone + i*msize); … … 80 79 m_init(PNATState pData) 81 80 { 82 int i;83 struct mbuf *m;84 81 int rc = 0; 85 82 m_freelist.m_next = m_freelist.m_prev = &m_freelist;
Note:
See TracChangeset
for help on using the changeset viewer.