Changeset 102f641 in mainline for uspace/srv/sysman/units/unit_svc.c


Ignore:
Timestamp:
2019-09-02T19:01:50Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
25697163
Parents:
241f1985
Message:

Correcting syntax according to ccheck

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/units/unit_svc.c

    r241f1985 r102f641  
    4040
    4141static config_item_t unit_configuration[] = {
    42         {"ExecStart", &util_parse_command, offsetof(unit_svc_t, exec_start), NULL},
     42        { "ExecStart", &util_parse_command, offsetof(unit_svc_t, exec_start), NULL },
    4343        CONFIGURATION_ITEM_SENTINEL
    4444};
     
    8282        assert(u_svc);
    8383
    84        
    8584        assert(unit->state == STATE_STOPPED);
    8685
     
    117116        assert(u_svc);
    118117
    119        
    120118        // note: May change when job cancellation is possible.
    121119        assert(unit->state == STATE_STARTED);
     
    133131
    134132        if (rc != EOK) {
    135                 /* Task may still be running, but be conservative about unit's
    136                  * state. */
     133                /*
     134                 * Task may still be running, but be conservative about unit's
     135                 * state.
     136                 */
    137137                unit->state = STATE_FAILED;
    138138                return rc;
     
    144144}
    145145
    146 
    147146static void unit_svc_exposee_created(unit_t *unit)
    148147{
    149148        assert(CAST_SVC(unit));
    150         assert(unit->state == STATE_STOPPED || unit->state == STATE_STARTING || unit->state==STATE_STARTED);
     149        assert(unit->state == STATE_STOPPED || unit->state == STATE_STARTING || unit->state == STATE_STARTED);
    151150
    152151        /* Exposee itself doesn't represent started unit. */
     
    160159}
    161160
    162 DEFINE_UNIT_VMT(unit_svc)
    163 
     161DEFINE_UNIT_VMT(unit_svc);
Note: See TracChangeset for help on using the changeset viewer.