Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/root/virt/virt.c

    rb7fd2a0 rcde999a  
    6262};
    6363
    64 static errno_t virt_dev_add(ddf_dev_t *dev);
    65 static errno_t virt_dev_remove(ddf_dev_t *dev);
    66 static errno_t virt_fun_online(ddf_fun_t *fun);
    67 static errno_t virt_fun_offline(ddf_fun_t *fun);
     64static int virt_dev_add(ddf_dev_t *dev);
     65static int virt_dev_remove(ddf_dev_t *dev);
     66static int virt_fun_online(ddf_fun_t *fun);
     67static int virt_fun_offline(ddf_fun_t *fun);
    6868
    6969static driver_ops_t virt_ops = {
     
    100100 * @return              EOK on success or an error code.
    101101 */
    102 static errno_t virt_add_fun(virt_t *virt, virtual_function_t *vfun)
     102static int virt_add_fun(virt_t *virt, virtual_function_t *vfun)
    103103{
    104104        ddf_dev_t *vdev = virt->dev;
    105105        ddf_fun_t *fun;
    106106        virt_fun_t *rvfun;
    107         errno_t rc;
     107        int rc;
    108108
    109109        ddf_msg(LVL_DEBUG, "Registering function `%s' (match \"%s\")",
     
    148148}
    149149
    150 static errno_t virt_fun_remove(virt_fun_t *rvfun)
    151 {
    152         errno_t rc;
     150static int virt_fun_remove(virt_fun_t *rvfun)
     151{
     152        int rc;
    153153        const char *name = ddf_fun_get_name(rvfun->fun);
    154154
     
    172172
    173173
    174 static errno_t virt_dev_add(ddf_dev_t *dev)
     174static int virt_dev_add(ddf_dev_t *dev)
    175175{
    176176        virt_t *virt;
     
    205205}
    206206
    207 static errno_t virt_dev_remove(ddf_dev_t *dev)
     207static int virt_dev_remove(ddf_dev_t *dev)
    208208{
    209209        virt_t *virt = (virt_t *)ddf_dev_data_get(dev);
    210         errno_t rc;
     210        int rc;
    211211
    212212        while (!list_empty(&virt->functions)) {
     
    224224}
    225225
    226 static errno_t virt_fun_online(ddf_fun_t *fun)
     226static int virt_fun_online(ddf_fun_t *fun)
    227227{
    228228        ddf_msg(LVL_DEBUG, "virt_fun_online()");
     
    230230}
    231231
    232 static errno_t virt_fun_offline(ddf_fun_t *fun)
     232static int virt_fun_offline(ddf_fun_t *fun)
    233233{
    234234        ddf_msg(LVL_DEBUG, "virt_fun_offline()");
Note: See TracChangeset for help on using the changeset viewer.