Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/net/packet.c

    r88a1bb9 r16ac756  
    6464typedef packet_t packet_map_t[PACKET_MAP_SIZE];
    6565
     66/** Type definition of the packet map page pointer. */
     67typedef packet_map_t * packet_map_ref;
     68
    6669/** Packet map.
    6770 * Maps packet identifiers to the packet references.
     
    106109packet_t pm_find(packet_id_t packet_id)
    107110{
    108         packet_map_t *map;
     111        packet_map_ref map;
    109112        packet_t packet;
    110113
     
    137140int pm_add(packet_t packet)
    138141{
    139         packet_map_t *map;
     142        packet_map_ref map;
    140143        int rc;
    141144
     
    151154        } else {
    152155                do {
    153                         map = (packet_map_t *) malloc(sizeof(packet_map_t));
     156                        map = (packet_map_ref) malloc(sizeof(packet_map_t));
    154157                        if (!map) {
    155158                                fibril_rwlock_write_unlock(&pm_globals.lock);
     
    177180        int count;
    178181        int index;
    179         packet_map_t *map;
     182        packet_map_ref map;
    180183        packet_t packet;
    181184
Note: See TracChangeset for help on using the changeset viewer.