Changeset 49432 in vbox for trunk/src/VBox
- Timestamp:
- Nov 8, 2013 6:44:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/libalias/alias_mod.c
r49347 r49432 158 158 #endif 159 159 { 160 struct proto_handler *b = NULL ;160 struct proto_handler *b = NULL, *handler_chain_tail = NULL; 161 161 162 162 LIBALIAS_WLOCK_ASSERT(); … … 170 170 return (0); 171 171 } 172 173 /* If the conditions above do not work, we should keep the last 174 * element of the list in order to insert *p right after it. */ 175 handler_chain_tail = b; 172 176 } 173 177 /* End of list or found right position, inserts here. */ 174 if ( b)175 LIST_INSERT_AFTER( b, p, entries);178 if (handler_chain_tail) 179 LIST_INSERT_AFTER(handler_chain_tail, p, entries); 176 180 else 177 181 LIST_INSERT_HEAD(&handler_chain, p, entries);
Note:
See TracChangeset
for help on using the changeset viewer.