Changeset a35b458 in mainline for uspace/srv/ns/clonable.c


Ignore:
Timestamp:
2018-03-02T20:10:49Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1380b7
Parents:
3061bc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, for particular file types.

Command used: tools/srepl '\s\+$' '' -- *.c *.h *.py *.sh *.s *.S *.ag

Currently, whitespace on empty lines is very inconsistent.
There are two basic choices: Either remove the whitespace, or keep empty lines
indented to the level of surrounding code. The former is AFAICT more common,
and also much easier to do automatically.

Alternatively, we could write script for automatic indentation, and use that
instead. However, if such a script exists, it's possible to use the indented
style locally, by having the editor apply relevant conversions on load/save,
without affecting remote repository. IMO, it makes more sense to adopt
the simpler rule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/ns/clonable.c

    r3061bc1 ra35b458  
    8484                return;
    8585        }
    86        
     86
    8787        cs_req_t *csr = list_get_instance(req_link, cs_req_t, link);
    8888        list_remove(req_link);
    89        
     89
    9090        /* Currently we can only handle a single type of clonable service. */
    9191        assert(csr->service == SERVICE_LOADER);
    92        
     92
    9393        async_answer_0(callid, EOK);
    94        
     94
    9595        async_sess_t *sess = async_callback_receive(EXCHANGE_SERIALIZE);
    9696        if (sess == NULL)
    9797                async_answer_0(callid, EIO);
    98        
     98
    9999        async_exch_t *exch = async_exchange_begin(sess);
    100100        async_forward_fast(csr->callid, exch, csr->iface, csr->arg3, 0,
    101101            IPC_FF_NONE);
    102102        async_exchange_end(exch);
    103        
     103
    104104        free(csr);
    105105        async_hangup(sess);
     
    120120{
    121121        assert(service == SERVICE_LOADER);
    122        
     122
    123123        cs_req_t *csr = malloc(sizeof(cs_req_t));
    124124        if (csr == NULL) {
     
    126126                return;
    127127        }
    128        
     128
    129129        /* Spawn a loader. */
    130130        errno_t rc = loader_spawn("loader");
    131        
     131
    132132        if (rc != EOK) {
    133133                free(csr);
     
    135135                return;
    136136        }
    137        
     137
    138138        link_initialize(&csr->link);
    139139        csr->service = service;
     
    141141        csr->callid = callid;
    142142        csr->arg3 = IPC_GET_ARG3(*call);
    143        
     143
    144144        /*
    145145         * We can forward the call only after the server we spawned connects
Note: See TracChangeset for help on using the changeset viewer.