Changeset 1916d1f in mainline for uspace/lib/net/nil/nil_skel.c


Ignore:
Timestamp:
2011-07-12T13:41:26Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
50fc490
Parents:
11809eab (diff), 6817eba (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 libposix changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/nil/nil_skel.c

    r11809eab r1916d1f  
    3838#include <bool.h>
    3939#include <errno.h>
     40#include <ns.h>
    4041#include <nil_skel.h>
    4142#include <net_interface.h>
    4243#include <net/modules.h>
    43 
    44 // FIXME: remove this header
    45 #include <kernel/ipc/ipc_methods.h>
    4644
    4745/** Default thread for new connections.
     
    9997 * @return Other error codes as defined for the nil_initialize()
    10098 *         function.
    101  * @return Other error codes as defined for the REGISTER_ME() macro
    102  *         function.
    10399 *
    104100 */
    105 int nil_module_start(int service)
     101int nil_module_start(sysarg_t service)
    106102{
    107103        async_set_client_connection(nil_client_connection);
    108         int net_phone = net_connect_module();
    109         if (net_phone < 0)
    110                 return net_phone;
     104        async_sess_t *sess = net_connect_module();
     105        if (!sess)
     106                return ENOENT;
    111107       
    112108        int rc = pm_init();
     
    114110                return rc;
    115111       
    116         rc = nil_initialize(net_phone);
     112        rc = nil_initialize(sess);
    117113        if (rc != EOK)
    118114                goto out;
    119115       
    120         rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL);
     116        rc = service_register(service);
    121117        if (rc != EOK)
    122118                goto out;
Note: See TracChangeset for help on using the changeset viewer.