Changeset 8fb1bf82 in mainline for uspace/srv/net/net/net_standalone.c


Ignore:
Timestamp:
2010-11-25T13:42:50Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8df8415
Parents:
a93d79a (diff), eb667613 (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_standalone.c

    ra93d79a r8fb1bf82  
    2828
    2929/** @addtogroup net
    30  *  @{
     30 * @{
    3131 */
    3232
    3333/** @file
    34  *  Wrapper for the standalone networking module.
     34 * Wrapper for the standalone networking module.
    3535 */
    36 
    37 #include <str.h>
    38 
    39 #include <ipc/ipc.h>
    40 #include <ipc/net.h>
    41 
    42 #include <ip_interface.h>
    43 #include <adt/measured_strings.h>
    44 #include <adt/module_map.h>
    45 #include <packet_server.h>
    4636
    4737#include "net.h"
    4838
    49 /** Networking module global data.
    50  */
     39#include <str.h>
     40#include <adt/measured_strings.h>
     41#include <adt/module_map.h>
     42#include <ipc/ipc.h>
     43#include <ipc/net.h>
     44#include <errno.h>
     45
     46#include <ip_interface.h>
     47#include <packet_server.h>
     48
     49/** Networking module global data. */
    5150extern net_globals_t net_globals;
    5251
     
    6059 *
    6160 */
    62 int net_initialize_build(async_client_conn_t client_connection){
    63         ERROR_DECLARE;
     61int net_initialize_build(async_client_conn_t client_connection)
     62{
     63        int rc;
    6464       
    6565        task_id_t task_id = spawn("/srv/ip");
     
    6767                return EINVAL;
    6868       
    69         ERROR_PROPAGATE(add_module(NULL, &net_globals.modules, IP_NAME,
    70             IP_FILENAME, SERVICE_IP, task_id, ip_connect_module));
     69        rc = add_module(NULL, &net_globals.modules, IP_NAME,
     70            IP_FILENAME, SERVICE_IP, task_id, ip_connect_module);
     71        if (rc != EOK)
     72                return rc;
    7173       
    7274        if (!spawn("/srv/icmp"))
Note: See TracChangeset for help on using the changeset viewer.