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