Changeset e623197 in mainline


Ignore:
Timestamp:
2008-06-03T15:09:30Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
271b540
Parents:
e00938c
Message:

service banner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/ns/ns.c

    re00938c re623197  
    5151#include <as.h>
    5252
    53 #define NAME    "NS"
     53#define NAME    "ns"
    5454
    5555#define NS_HASH_TABLE_CHAINS    20
     
    105105int main(int argc, char **argv)
    106106{
     107        printf(NAME ": HelenOS IPC Naming Service\n");
     108       
    107109        ipc_call_t call;
    108110        ipc_callid_t callid;
     
    112114        if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3,
    113115            &ns_hash_table_ops)) {
     116                printf(NAME ": No memory available\n");
    114117                return ENOMEM;
    115118        }
    116                
     119       
     120        printf(NAME ": Accepting connections\n");
    117121        while (1) {
    118122                callid = ipc_wait_for_call(&call);
     
    157161                }
    158162        }
     163       
     164        /* Not reached */
     165        return 0;
    159166}
    160167
Note: See TracChangeset for help on using the changeset viewer.