Changeset 338d54a7 in mainline for uspace/srv/logger/writer.c


Ignore:
Timestamp:
2018-03-10T22:55:07Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
850fd32
Parents:
5ef16903
Message:

Gratuitous nested block makes ccheck sad.

File:
1 edited

Legend:

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

    r5ef16903 r338d54a7  
    9696void logger_connection_handler_writer(ipc_callid_t callid)
    9797{
     98        logger_log_t *log;
     99        errno_t rc;
     100
    98101        /* Acknowledge the connection. */
    99102        async_answer_0(callid, EOK);
     
    112115
    113116                switch (IPC_GET_IMETHOD(call)) {
    114                 case LOGGER_WRITER_CREATE_LOG: {
    115                         logger_log_t *log = handle_create_log(IPC_GET_ARG1(call));
     117                case LOGGER_WRITER_CREATE_LOG:
     118                        log = handle_create_log(IPC_GET_ARG1(call));
    116119                        if (log == NULL) {
    117120                                async_answer_0(callid, ENOMEM);
     
    126129                        async_answer_1(callid, EOK, (sysarg_t) log);
    127130                        break;
    128                 }
    129                 case LOGGER_WRITER_MESSAGE: {
    130                         errno_t rc = handle_receive_message(IPC_GET_ARG1(call),
     131                case LOGGER_WRITER_MESSAGE:
     132                        rc = handle_receive_message(IPC_GET_ARG1(call),
    131133                            IPC_GET_ARG2(call));
    132134                        async_answer_0(callid, rc);
    133135                        break;
    134                 }
    135136                default:
    136137                        async_answer_0(callid, EINVAL);
Note: See TracChangeset for help on using the changeset viewer.