Changeset a46e56b in mainline for uspace/srv/logger/ctl.c


Ignore:
Timestamp:
2018-03-22T06:49:35Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
77f0a1d
Parents:
3e242d2
git-author:
Jakub Jermar <jakub@…> (2018-03-21 23:29:06)
git-committer:
Jakub Jermar <jakub@…> (2018-03-22 06:49:35)
Message:

Prefer handle over ID in naming handle variables

File:
1 edited

Legend:

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

    r3e242d2 ra46e56b  
    6363}
    6464
    65 void logger_connection_handler_control(cap_call_handle_t callid)
     65void logger_connection_handler_control(cap_call_handle_t chandle)
    6666{
    6767        errno_t rc;
    6868        int fd;
    6969
    70         async_answer_0(callid, EOK);
     70        async_answer_0(chandle, EOK);
    7171        logger_log("control: new client.\n");
    7272
    7373        while (true) {
    7474                ipc_call_t call;
    75                 cap_call_handle_t callid = async_get_call(&call);
     75                cap_call_handle_t chandle = async_get_call(&call);
    7676
    7777                if (!IPC_GET_IMETHOD(call))
     
    8181                case LOGGER_CONTROL_SET_DEFAULT_LEVEL:
    8282                        rc = set_default_logging_level(IPC_GET_ARG1(call));
    83                         async_answer_0(callid, rc);
     83                        async_answer_0(chandle, rc);
    8484                        break;
    8585                case LOGGER_CONTROL_SET_LOG_LEVEL:
    8686                        rc = handle_log_level_change(IPC_GET_ARG1(call));
    87                         async_answer_0(callid, rc);
     87                        async_answer_0(chandle, rc);
    8888                        break;
    8989                case LOGGER_CONTROL_SET_ROOT:
     
    9393                                vfs_put(fd);
    9494                        }
    95                         async_answer_0(callid, rc);
     95                        async_answer_0(chandle, rc);
    9696                        break;
    9797                default:
    98                         async_answer_0(callid, EINVAL);
     98                        async_answer_0(chandle, EINVAL);
    9999                        break;
    100100                }
Note: See TracChangeset for help on using the changeset viewer.