Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 31c80a5 in mainline


Ignore:
Timestamp:
2010-03-07T22:33:02Z (12 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master
Children:
71b00dcc, a8a13d0
Parents:
836dd794
Message:
  • pq_find() fix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/structures/packet/packet.c

    r836dd794 r31c80a5  
    232232                return NULL;
    233233        }
    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{
    240236                if(item->order == order){
    241237                        return item;
    242238                }
    243         }
     239                item = pm_find(item->next);
     240        }while(item && (item != packet) && packet_is_valid(item));
    244241        return NULL;
    245242}
Note: See TracChangeset for help on using the changeset viewer.