Changeset 31c80a5 in mainline for uspace/srv/net/structures/packet/packet.c
- Timestamp:
- 2010-03-07T22:33:02Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 71b00dcc, a8a13d0
- Parents:
- 836dd794
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/structures/packet/packet.c
r836dd794 r31c80a5 232 232 return NULL; 233 233 } 234 if(packet->order == order){ 235 return packet; 236 } 237 item = pm_find(packet->next); 238 while(item && (item != packet)){ 239 item = pm_find(item->next); 234 item = packet; 235 do{ 240 236 if(item->order == order){ 241 237 return item; 242 238 } 243 } 239 item = pm_find(item->next); 240 }while(item && (item != packet) && packet_is_valid(item)); 244 241 return NULL; 245 242 }
Note:
See TracChangeset
for help on using the changeset viewer.