Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 1038a9c in mainline for uspace/srv/net/inetsrv/inetsrv.c


Ignore:
Timestamp:
2012-06-01T19:12:06Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
b16e77d
Parents:
a47f522
Message:

cstyle (no change in functionality)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inetsrv.c

    ra47f522 r1038a9c  
    6666static int inet_init(void)
    6767{
    68         service_id_t sid;
    69         int rc;
    70 
    7168        log_msg(LVL_DEBUG, "inet_init()");
    72 
     69       
    7370        async_set_client_connection(inet_client_conn);
    74 
    75         rc = loc_server_register(NAME);
     71       
     72        int rc = loc_server_register(NAME);
    7673        if (rc != EOK) {
    7774                log_msg(LVL_ERROR, "Failed registering server (%d).", rc);
    7875                return EEXIST;
    7976        }
    80 
     77       
     78        service_id_t sid;
    8179        rc = loc_service_register_with_iface(SERVICE_NAME_INET, &sid,
    8280            INET_PORT_DEFAULT);
     
    8583                return EEXIST;
    8684        }
    87 
     85       
    8886        rc = loc_service_register_with_iface(SERVICE_NAME_INETCFG, &sid,
    8987            INET_PORT_CFG);
     
    9290                return EEXIST;
    9391        }
    94 
     92       
    9593        rc = loc_service_register_with_iface(SERVICE_NAME_INETPING, &sid,
    9694            INET_PORT_PING);
     
    9997                return EEXIST;
    10098        }
    101 
     99       
    102100        rc = inet_link_discovery_start();
    103101        if (rc != EOK)
    104102                return EEXIST;
    105 
     103       
    106104        return EOK;
    107105}
Note: See TracChangeset for help on using the changeset viewer.