Changes in uspace/srv/vfs/vfs.c [3e6a98c5:fbcdeb8] in mainline


Ignore:
File:
1 edited

Legend:

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

    r3e6a98c5 rfbcdeb8  
    4444#include <errno.h>
    4545#include <stdio.h>
    46 #include <stdbool.h>
     46#include <bool.h>
    4747#include <str.h>
    4848#include <as.h>
     
    159159int main(int argc, char **argv)
    160160{
    161         printf("%s: HelenOS VFS server\n", NAME);
     161        printf(NAME ": HelenOS VFS server\n");
    162162       
    163163        /*
     
    165165         */
    166166        if (!vfs_nodes_init()) {
    167                 printf("%s: Failed to initialize VFS node hash table\n",
    168                     NAME);
     167                printf(NAME ": Failed to initialize VFS node hash table\n");
    169168                return ENOMEM;
    170169        }
     
    173172         * Allocate and initialize the Path Lookup Buffer.
    174173         */
    175         plb = as_area_create(AS_AREA_ANY, PLB_SIZE,
     174        plb = as_area_create((void *) -1, PLB_SIZE,
    176175            AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE);
    177         if (plb == AS_MAP_FAILED) {
    178                 printf("%s: Cannot create address space area\n", NAME);
     176        if (plb == (void *) -1) {
     177                printf(NAME ": Cannot create address space area\n");
    179178                return ENOMEM;
    180179        }
     
    197196        async_set_interrupt_received(notification_received);
    198197        event_task_subscribe(EVENT_TASK_STATE_CHANGE, VFS_TASK_STATE_CHANGE);
    199        
     198
    200199        /*
    201200         * Register at the naming service.
    202201         */
    203         int rc = service_register(SERVICE_VFS);
    204         if (rc != EOK) {
     202        if (service_register(SERVICE_VFS) != EOK) {
    205203                printf("%s: Cannot register VFS service\n", NAME);
    206                 return rc;
     204                return EINVAL;
    207205        }
    208206       
     
    210208         * Start accepting connections.
    211209         */
    212         printf("%s: Accepting connections\n", NAME);
     210        printf(NAME ": Accepting connections\n");
    213211        async_manager();
    214212        return 0;
Note: See TracChangeset for help on using the changeset viewer.