From 108602edcc3c9087905062b8132e7aa21999ee3a Mon Sep 17 00:00:00 2001 From: Jakub Jermar Date: Mon, 15 May 2006 15:33:51 +0000 Subject: [PATCH] Fix typos and comments. --- ns/ns.c | 14 +++++++------- pci/libpci/VERSION | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 pci/libpci/VERSION diff --git a/ns/ns.c b/ns/ns.c index c569f3276..f0d67ee56 100644 --- a/ns/ns.c +++ b/ns/ns.c @@ -103,7 +103,7 @@ int main(int argc, char **argv) ipcarg_t retval, arg1, arg2; - printf("%s: Name service started.\n", NAME); + printf("%s: Naming service started.\n", NAME); if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3, &ns_hash_table_ops)) { printf("%s: cannot create hash table\n", NAME); @@ -148,6 +148,10 @@ int main(int argc, char **argv) */ retval = connect_to_service(IPC_GET_ARG1(call), &call, callid); break; + case NS_HANGUP: + printf("Closing connection.\n"); + retval = EHANGUP; + break; case NS_PING: printf("Ping...%P %P\n", IPC_GET_ARG1(call), IPC_GET_ARG2(call)); @@ -155,10 +159,6 @@ int main(int argc, char **argv) arg1 = 0xdead; arg2 = 0xbeef; break; - case NS_HANGUP: - printf("Closing connection.\n"); - retval = EHANGUP; - break; case NS_PING_SVC: printf("NS:Pinging service %d\n", ping_phone); ipc_call_sync(ping_phone, NS_PING, 0xbeef, 0); @@ -176,7 +176,7 @@ int main(int argc, char **argv) } } -/** Register server. +/** Register service. * * @param service Service to be registered. * @param phone phone Phone to be used for connections to the service. @@ -227,7 +227,7 @@ int connect_to_service(ipcarg_t service, ipc_call_t *call, ipc_callid_t callid) hlp = hash_table_find(&ns_hash_table, keys); if (!hlp) { - printf("Service %d noty registered.\n", service); + printf("Service %d not registered.\n", service); return ENOENT; } hs = hash_table_get_instance(hlp, hashed_service_t, link); diff --git a/pci/libpci/VERSION b/pci/libpci/VERSION new file mode 100644 index 000000000..95a9d5fec --- /dev/null +++ b/pci/libpci/VERSION @@ -0,0 +1,2 @@ +This libpci has been ported from pciutils-2.2.3 +on May 8, 2006 by Jakub Jermar. -- 2.11.4.GIT