Changeset ad7a6c9 in mainline for uspace/lib/net/tl/socket_core.c
- Timestamp:
- 2011-03-30T13:10:24Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4ae90f9
- Parents:
- 6e50466 (diff), d6b81941 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/tl/socket_core.c
r6e50466 rad7a6c9 107 107 socket_release(socket); 108 108 109 socket_cores_exclude(local_sockets, socket->socket_id );109 socket_cores_exclude(local_sockets, socket->socket_id, free); 110 110 } 111 111 … … 161 161 static int 162 162 socket_port_add_core(socket_port_t *socket_port, socket_core_t *socket, 163 const char*key, size_t key_length)163 const uint8_t *key, size_t key_length) 164 164 { 165 165 socket_core_t **socket_ref; … … 216 216 goto fail; 217 217 218 rc = socket_port_add_core(socket_port, socket, SOCKET_MAP_KEY_LISTENING,219 0);218 rc = socket_port_add_core(socket_port, socket, 219 (const uint8_t *) SOCKET_MAP_KEY_LISTENING, 0); 220 220 if (rc != EOK) 221 221 goto fail; … … 230 230 231 231 fail: 232 socket_port_map_destroy(&socket_port->map );232 socket_port_map_destroy(&socket_port->map, free); 233 233 free(socket_port); 234 234 return rc; … … 602 602 */ 603 603 socket_core_t * 604 socket_port_find(socket_ports_t *global_sockets, int port, const char*key,604 socket_port_find(socket_ports_t *global_sockets, int port, const uint8_t *key, 605 605 size_t key_length) 606 606 { … … 649 649 if (socket_port->count <= 0) { 650 650 // destroy the map 651 socket_port_map_destroy(&socket_port->map );651 socket_port_map_destroy(&socket_port->map, free); 652 652 // release the port 653 653 socket_ports_exclude(global_sockets, 654 socket->port );654 socket->port, free); 655 655 } else { 656 656 // remove 657 657 socket_port_map_exclude(&socket_port->map, 658 socket->key, socket->key_length );658 socket->key, socket->key_length, free); 659 659 } 660 660 } … … 680 680 int 681 681 socket_port_add(socket_ports_t *global_sockets, int port, 682 socket_core_t *socket, const char*key, size_t key_length)682 socket_core_t *socket, const uint8_t *key, size_t key_length) 683 683 { 684 684 socket_port_t *socket_port;
Note:
See TracChangeset
for help on using the changeset viewer.