Changeset 1564c4b in mainline for uspace/srv/net/tl/icmp/icmp.c


Ignore:
Timestamp:
2011-06-08T19:39:52Z (14 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2af29ed
Parents:
e686889c (diff), 0eff68e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/icmp/icmp.c

    re686889c r1564c4b  
    612612static void icmp_receiver(ipc_callid_t iid, ipc_call_t *icall)
    613613{
    614         bool loop = true;
    615614        packet_t *packet;
    616615        int rc;
    617616       
    618         while (loop) {
     617        while (true) {
     618                if (!IPC_GET_IMETHOD(*icall))
     619                        break;
     620               
    619621                switch (IPC_GET_IMETHOD(*icall)) {
    620622                case NET_TL_RECEIVED:
     
    629631                        async_answer_0(iid, (sysarg_t) rc);
    630632                        break;
    631                 case IPC_M_PHONE_HUNGUP:
    632                         loop = false;
    633                         continue;
    634633                default:
    635634                        async_answer_0(iid, (sysarg_t) ENOTSUP);
Note: See TracChangeset for help on using the changeset viewer.