Changes in uspace/lib/c/generic/net/packet.c [88a1bb9:16ac756] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/net/packet.c
r88a1bb9 r16ac756 64 64 typedef packet_t packet_map_t[PACKET_MAP_SIZE]; 65 65 66 /** Type definition of the packet map page pointer. */ 67 typedef packet_map_t * packet_map_ref; 68 66 69 /** Packet map. 67 70 * Maps packet identifiers to the packet references. … … 106 109 packet_t pm_find(packet_id_t packet_id) 107 110 { 108 packet_map_ t *map;111 packet_map_ref map; 109 112 packet_t packet; 110 113 … … 137 140 int pm_add(packet_t packet) 138 141 { 139 packet_map_ t *map;142 packet_map_ref map; 140 143 int rc; 141 144 … … 151 154 } else { 152 155 do { 153 map = (packet_map_ t *) malloc(sizeof(packet_map_t));156 map = (packet_map_ref) malloc(sizeof(packet_map_t)); 154 157 if (!map) { 155 158 fibril_rwlock_write_unlock(&pm_globals.lock); … … 177 180 int count; 178 181 int index; 179 packet_map_ t *map;182 packet_map_ref map; 180 183 packet_t packet; 181 184
Note:
See TracChangeset
for help on using the changeset viewer.