Changeset 1433ecda in mainline for uspace/srv/devman


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/srv/devman
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/devtree.c

    r47b2d7e3 r1433ecda  
    4444static inline size_t handle_key_hash(void *key)
    4545{
    46         devman_handle_t handle = *(devman_handle_t*)key;
     46        devman_handle_t handle = *(devman_handle_t *)key;
    4747        return handle;
    4848}
     
    6262static bool devman_devices_key_equal(void *key, const ht_link_t *item)
    6363{
    64         devman_handle_t handle = *(devman_handle_t*)key;
     64        devman_handle_t handle = *(devman_handle_t *)key;
    6565        dev_node_t *dev = hash_table_get_inst(item, dev_node_t, devman_dev);
    6666        return dev->handle == handle;
     
    6969static bool devman_functions_key_equal(void *key, const ht_link_t *item)
    7070{
    71         devman_handle_t handle = *(devman_handle_t*)key;
     71        devman_handle_t handle = *(devman_handle_t *)key;
    7272        fun_node_t *fun = hash_table_get_inst(item, fun_node_t, devman_fun);
    7373        return fun->handle == handle;
     
    7676static inline size_t service_id_key_hash(void *key)
    7777{
    78         service_id_t service_id = *(service_id_t*)key;
     78        service_id_t service_id = *(service_id_t *)key;
    7979        return service_id;
    8080}
     
    8888static bool loc_functions_key_equal(void *key, const ht_link_t *item)
    8989{
    90         service_id_t service_id = *(service_id_t*)key;
     90        service_id_t service_id = *(service_id_t *)key;
    9191        fun_node_t *fun = hash_table_get_inst(item, fun_node_t, loc_fun);
    9292        return fun->service_id == service_id;
  • uspace/srv/devman/match.c

    r47b2d7e3 r1433ecda  
    231231
    232232        size_t read_bytes;
    233         rc = vfs_read(fd, (aoff64_t []) {0}, buf, len, &read_bytes);
     233        rc = vfs_read(fd, (aoff64_t []) { 0 }, buf, len, &read_bytes);
    234234        if (rc != EOK) {
    235235                log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to read file '%s': %s.", conf_path,
  • uspace/srv/devman/util.c

    r47b2d7e3 r1433ecda  
    8383        size_t len = 0;
    8484
    85         while(*str != '\0' && !isspace(*str)) {
     85        while (*str != '\0' && !isspace(*str)) {
    8686                len++;
    8787                str++;
Note: See TracChangeset for help on using the changeset viewer.