Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/test/test2/test2.c

    rb7fd2a0 r267f235  
    4040#define NAME "test2"
    4141
    42 static errno_t test2_dev_add(ddf_dev_t *dev);
    43 static errno_t test2_dev_remove(ddf_dev_t *dev);
    44 static errno_t test2_dev_gone(ddf_dev_t *dev);
    45 static errno_t test2_fun_online(ddf_fun_t *fun);
    46 static errno_t test2_fun_offline(ddf_fun_t *fun);
     42static int test2_dev_add(ddf_dev_t *dev);
     43static int test2_dev_remove(ddf_dev_t *dev);
     44static int test2_dev_gone(ddf_dev_t *dev);
     45static int test2_fun_online(ddf_fun_t *fun);
     46static int test2_fun_offline(ddf_fun_t *fun);
    4747
    4848static driver_ops_t driver_ops = {
     
    7777 * @param score Device match score.
    7878 */
    79 static errno_t register_fun_verbose(ddf_dev_t *parent, const char *message,
     79static int register_fun_verbose(ddf_dev_t *parent, const char *message,
    8080    const char *name, const char *match_id, int match_score, ddf_fun_t **pfun)
    8181{
    8282        ddf_fun_t *fun;
    83         errno_t rc;
     83        int rc;
    8484
    8585        ddf_msg(LVL_DEBUG, "Registering function `%s': %s.", name, message);
     
    118118 * @return Always EOK.
    119119 */
    120 static errno_t plug_unplug(void *arg)
     120static int plug_unplug(void *arg)
    121121{
    122122        test2_t *test2 = (test2_t *) arg;
    123123        ddf_fun_t *fun_a;
    124         errno_t rc;
     124        int rc;
    125125
    126126        async_usleep(1000);
     
    157157}
    158158
    159 static errno_t fun_remove(ddf_fun_t *fun, const char *name)
    160 {
    161         errno_t rc;
     159static int fun_remove(ddf_fun_t *fun, const char *name)
     160{
     161        int rc;
    162162
    163163        ddf_msg(LVL_DEBUG, "fun_remove(%p, '%s')", fun, name);
     
    178178}
    179179
    180 static errno_t fun_unbind(ddf_fun_t *fun, const char *name)
    181 {
    182         errno_t rc;
     180static int fun_unbind(ddf_fun_t *fun, const char *name)
     181{
     182        int rc;
    183183
    184184        ddf_msg(LVL_DEBUG, "fun_unbind(%p, '%s')", fun, name);
     
    193193}
    194194
    195 static errno_t test2_dev_add(ddf_dev_t *dev)
     195static int test2_dev_add(ddf_dev_t *dev)
    196196{
    197197        test2_t *test2;
     
    224224}
    225225
    226 static errno_t test2_dev_remove(ddf_dev_t *dev)
     226static int test2_dev_remove(ddf_dev_t *dev)
    227227{
    228228        test2_t *test2 = (test2_t *)ddf_dev_data_get(dev);
    229         errno_t rc;
     229        int rc;
    230230
    231231        ddf_msg(LVL_DEBUG, "test2_dev_remove(%p)", dev);
     
    258258}
    259259
    260 static errno_t test2_dev_gone(ddf_dev_t *dev)
     260static int test2_dev_gone(ddf_dev_t *dev)
    261261{
    262262        test2_t *test2 = (test2_t *)ddf_dev_data_get(dev);
    263         errno_t rc;
     263        int rc;
    264264
    265265        ddf_msg(LVL_DEBUG, "test2_dev_gone(%p)", dev);
     
    293293
    294294
    295 static errno_t test2_fun_online(ddf_fun_t *fun)
     295static int test2_fun_online(ddf_fun_t *fun)
    296296{
    297297        ddf_msg(LVL_DEBUG, "test2_fun_online()");
     
    299299}
    300300
    301 static errno_t test2_fun_offline(ddf_fun_t *fun)
     301static int test2_fun_offline(ddf_fun_t *fun)
    302302{
    303303        ddf_msg(LVL_DEBUG, "test2_fun_offline()");
Note: See TracChangeset for help on using the changeset viewer.