Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/logger/ctl.c

    rf77c1c9 r582a0b8  
    3535 */
    3636
     37#include <malloc.h>
    3738#include <stdio.h>
    38 #include <stdlib.h>
    3939#include <errno.h>
    4040#include <io/logctl.h>
     
    8787                }
    8888                case LOGGER_CONTROL_SET_ROOT: {
    89                         int fd;
    90                         int rc = vfs_receive_handle(true, &fd);
    91                         if (rc == EOK) {
    92                                 rc = vfs_root_set(fd);
    93                                 vfs_put(fd);
    94                         }
    95                         async_answer_0(callid, rc);
     89                        int fd = vfs_receive_handle(true);
     90                        vfs_root_set(fd);
     91                        async_answer_0(callid, fd >= 0 ? EOK : fd);
    9692                        break;
    9793                }
Note: See TracChangeset for help on using the changeset viewer.