Fork us on GitHub Follow us on Facebook Follow us on Twitter

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


Ignore:
Timestamp:
2019-09-02T19:01:50Z (18 months 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_mnt.c

    r241f1985 r102f641  
    4141
    4242static config_item_t unit_configuration[] = {
    43         {"What",      &config_parse_string, offsetof(unit_mnt_t, device),     NULL},
    44         {"Where",     &config_parse_string, offsetof(unit_mnt_t, mountpoint), NULL},
    45         {"Type",      &config_parse_string, offsetof(unit_mnt_t, type),       NULL},
    46         {"Autostart", &config_parse_bool,   offsetof(unit_mnt_t, autostart),  "true"},
    47         {"Blocking",  &config_parse_bool,   offsetof(unit_mnt_t, blocking),   "true"},
     43        { "What",      &config_parse_string, offsetof(unit_mnt_t, device),     NULL },
     44        { "Where",     &config_parse_string, offsetof(unit_mnt_t, mountpoint), NULL },
     45        { "Type",      &config_parse_string, offsetof(unit_mnt_t, type),       NULL },
     46        { "Autostart", &config_parse_bool,   offsetof(unit_mnt_t, autostart),  "true" },
     47        { "Blocking",  &config_parse_bool,   offsetof(unit_mnt_t, blocking),   "true" },
    4848        CONFIGURATION_ITEM_SENTINEL
    4949};
     
    195195        assert(!u_mnt->autostart || u_mnt->blocking);
    196196
    197        
    198197        assert(unit->state == STATE_STOPPED);
    199198
     
    203202        mnt_data.mountpoint = u_mnt->mountpoint;
    204203        mnt_data.device     = u_mnt->device;
    205         /* TODO use other mount parameters
     204        /*
     205         * TODO use other mount parameters
    206206         * mnt_data.options    = u_mnt->options;
    207207         * mnt_data.instance   = u_mnt->instance;
     
    235235        assert(!u_mnt->autostart || u_mnt->blocking);
    236236
    237        
    238237        // note: we should never hit STATE_STARTING, since it'd mean there are
    239238        //       two jobs running at once (unless job cancellation is implemented)
     
    284283}
    285284
    286 
    287 DEFINE_UNIT_VMT(unit_mnt)
    288 
     285DEFINE_UNIT_VMT(unit_mnt);
Note: See TracChangeset for help on using the changeset viewer.