Changes in uspace/lib/c/generic/async/ports.c [5e801dc:25f6bddb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async/ports.c
r5e801dc r25f6bddb 27 27 */ 28 28 29 #define _LIBC_ASYNC_C_29 #define LIBC_ASYNC_C_ 30 30 #include <ipc/ipc.h> 31 31 #include <async.h> 32 32 #include "../private/async.h" 33 #undef _LIBC_ASYNC_C_33 #undef LIBC_ASYNC_C_ 34 34 35 35 #include <ipc/irq.h> … … 103 103 static hash_table_t interface_hash_table; 104 104 105 static size_t interface_key_hash( constvoid *key)106 { 107 const iface_t *iface =key;108 return *iface;105 static size_t interface_key_hash(void *key) 106 { 107 iface_t iface = *(iface_t *) key; 108 return iface; 109 109 } 110 110 … … 115 115 } 116 116 117 static bool interface_key_equal( constvoid *key, const ht_link_t *item)118 { 119 const iface_t *iface =key;117 static bool interface_key_equal(void *key, const ht_link_t *item) 118 { 119 iface_t iface = *(iface_t *) key; 120 120 interface_t *interface = hash_table_get_inst(item, interface_t, link); 121 return *iface == interface->iface;121 return iface == interface->iface; 122 122 } 123 123 … … 131 131 }; 132 132 133 static size_t port_key_hash( constvoid *key)134 { 135 const port_id_t *port_id =key;136 return *port_id;133 static size_t port_key_hash(void *key) 134 { 135 port_id_t port_id = *(port_id_t *) key; 136 return port_id; 137 137 } 138 138 … … 143 143 } 144 144 145 static bool port_key_equal( constvoid *key, const ht_link_t *item)146 { 147 const port_id_t *port_id =key;145 static bool port_key_equal(void *key, const ht_link_t *item) 146 { 147 port_id_t port_id = *(port_id_t *) key; 148 148 port_t *port = hash_table_get_inst(item, port_t, link); 149 return *port_id == port->id;149 return port_id == port->id; 150 150 } 151 151
Note:
See TracChangeset
for help on using the changeset viewer.