Changeset 0eb58f1 in mainline for uspace/ns/ns.c


Ignore:
Timestamp:
2007-06-20T20:53:19Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6765c07
Parents:
84947a4
Message:

Cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/ns/ns.c

    r84947a4 r0eb58f1  
    5656
    5757static int register_service(ipcarg_t service, ipcarg_t phone, ipc_call_t *call);
    58 static int connect_to_service(ipcarg_t service, ipc_call_t *call, ipc_callid_t callid);
     58static int connect_to_service(ipcarg_t service, ipc_call_t *call,
     59    ipc_callid_t callid);
    5960
    6061/* Static functions implementing NS hash table operations. */
     
    8485static void *klogaddr = NULL;
    8586
    86 static void get_as_area(ipc_callid_t callid, ipc_call_t *call, char *name, void **addr)
     87static void get_as_area(ipc_callid_t callid, ipc_call_t *call, char *name,
     88    void **addr)
    8789{
    8890        void *ph_addr;
     
    107109        ipcarg_t retval;
    108110
    109         if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3, &ns_hash_table_ops)) {
     111        if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3,
     112            &ns_hash_table_ops)) {
    110113                return ENOMEM;
    111114        }
     
    135138                         * Server requests service registration.
    136139                         */
    137                         retval = register_service(IPC_GET_ARG1(call), IPC_GET_ARG3(call), &call);
     140                        retval = register_service(IPC_GET_ARG1(call),
     141                            IPC_GET_ARG3(call), &call);
    138142                        break;
    139143                case IPC_M_CONNECT_ME_TO:
     
    141145                         * Client requests to be connected to a service.
    142146                         */
    143                         retval = connect_to_service(IPC_GET_ARG1(call), &call, callid);
     147                        retval = connect_to_service(IPC_GET_ARG1(call), &call,
     148                            callid);
    144149                        break;
    145150                default:
     
    147152                        break;
    148153                }
    149                 if (! (callid & IPC_CALLID_NOTIFICATION)) {
     154                if (!(callid & IPC_CALLID_NOTIFICATION)) {
    150155                        ipc_answer_fast(callid, retval, 0, 0);
    151156                }
     
    163168int register_service(ipcarg_t service, ipcarg_t phone, ipc_call_t *call)
    164169{
    165         unsigned long keys[3] = { service, call->in_phone_hash, 0 };
     170        unsigned long keys[3] = {
     171                service,
     172                call->in_phone_hash,
     173                0
     174        };
    166175        hashed_service_t *hs;
    167176                       
Note: See TracChangeset for help on using the changeset viewer.