Changeset 1affcdf3 in mainline for uspace/srv/net/net/net.c


Ignore:
Timestamp:
2011-06-10T19:33:41Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1878386
Parents:
13ecdac9 (diff), 79a141a (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/srv/net/net/net.c

    r13ecdac9 r1affcdf3  
    4141#include <ctype.h>
    4242#include <ddi.h>
     43#include <ns.h>
    4344#include <errno.h>
    4445#include <malloc.h>
     
    339340                goto out;
    340341       
    341         rc = async_connect_to_me(PHONE_NS, SERVICE_NETWORKING, 0, 0, NULL);
     342        rc = service_register(SERVICE_NETWORKING);
    342343        if (rc != EOK)
    343344                goto out;
     
    638639       
    639640        *answer_count = 0;
     641       
     642        if (!IPC_GET_IMETHOD(*call))
     643                return EOK;
     644       
    640645        switch (IPC_GET_IMETHOD(*call)) {
    641         case IPC_M_PHONE_HUNGUP:
    642                 return EOK;
    643646        case NET_NET_GET_DEVICE_CONF:
    644647                rc = measured_strings_receive(&strings, &data,
     
    703706               
    704707                /* End if told to either by the message or the processing result */
    705                 if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) || (res == EHANGUP))
     708                if ((!IPC_GET_IMETHOD(call)) || (res == EHANGUP))
    706709                        return;
    707710               
Note: See TracChangeset for help on using the changeset viewer.