Changeset cd50486 in mainline for uspace/srv/vfs/vfs.c


Ignore:
Timestamp:
2011-02-06T22:03:55Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
25971d2
Parents:
1110ebd (diff), 960ff451 (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 development/ changes

File:
1 edited

Legend:

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

    r1110ebd rcd50486  
    3636 */
    3737
    38 #include <ipc/ipc.h>
    3938#include <ipc/services.h>
     39#include <ipc/ns.h>
    4040#include <async.h>
    4141#include <errno.h>
     
    4747#include "vfs.h"
    4848
    49 #define NAME "vfs"
     49#define NAME  "vfs"
    5050
    5151static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall)
     
    5757         * This call needs to be answered.
    5858         */
    59         ipc_answer_0(iid, EOK);
     59        async_answer_0(iid, EOK);
    6060       
    6161        while (keep_on_going) {
     
    119119                        vfs_dup(callid, &call);
    120120                default:
    121                         ipc_answer_0(callid, ENOTSUP);
     121                        async_answer_0(callid, ENOTSUP);
    122122                        break;
    123123                }
     
    172172         * Register at the naming service.
    173173         */
    174         ipc_connect_to_me(PHONE_NS, SERVICE_VFS, 0, 0, NULL, NULL);
     174        if (service_register(SERVICE_VFS) != EOK) {
     175                printf("%s: Cannot register VFS service\n", NAME);
     176                return EINVAL;
     177        }
    175178       
    176179        /*
Note: See TracChangeset for help on using the changeset viewer.