Changeset f959a20f in mainline for uspace/srv/net/tcp/ncsim.c


Ignore:
Timestamp:
2019-02-01T22:32:38Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
00b7fc8
Parents:
1a37496
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-01 21:22:39)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-01 22:32:38)
Message:

Avoid directly using .head/.next/.prev of list_t/link_t

Use existing constructs from <adt/list.h> instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tcp/ncsim.c

    r1a37496 rf959a20f  
    108108                sqe->delay -= old_qe->delay;
    109109
    110                 link = link->next;
    111                 if (link == &sim_queue.head)
    112                         link = NULL;
     110                link = list_next(link, &sim_queue);
    113111        }
    114112
Note: See TracChangeset for help on using the changeset viewer.