Changeset 8b655705 in mainline for uspace/lib/net/generic/generic.c


Ignore:
Timestamp:
2011-04-15T19:38:07Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9dd730d1
Parents:
6b9e85b (diff), b2fb47f (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 changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/generic/generic.c

    r6b9e85b r8b655705  
    3636
    3737#include <generic.h>
    38 
    3938#include <async.h>
    40 #include <ipc/ipc.h>
    4139#include <ipc/services.h>
    42 
    4340#include <net/device.h>
    4441#include <adt/measured_strings.h>
     
    109106                return EBADMEM;
    110107
    111         // request the address
     108        /* Request the address */
    112109        message_id = async_send_1(phone, (sysarg_t) message,
    113110            (sysarg_t) device_id, NULL);
     
    115112        async_wait_for(message_id, &result);
    116113
    117         // if not successful
     114        /* If not successful */
    118115        if ((string == EOK) && (result != EOK)) {
    119                 // clear the data
     116                /* Clear the data */
    120117                free(*address);
    121118                free(*data);
     
    245242                return EBADMEM;
    246243
    247         // request the translation
     244        /* Request the translation */
    248245        message_id = async_send_3(phone, (sysarg_t) message,
    249246            (sysarg_t) device_id, (sysarg_t) count, (sysarg_t) service, NULL);
     
    252249        async_wait_for(message_id, &result);
    253250
    254         // if not successful
     251        /* If not successful */
    255252        if ((string == EOK) && (result != EOK)) {
    256                 // clear the data
     253                /* Clear the data */
    257254                free(*translation);
    258255                free(*data);
Note: See TracChangeset for help on using the changeset viewer.