Changeset 16b0ac3 in mainline for uspace/srv/net/udp/assoc.c


Ignore:
Timestamp:
2019-10-12T00:22:17Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
25525133
Parents:
a163d10
Message:

Start adding unit tests for UDP associations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/udp/assoc.c

    ra163d10 r16b0ac3  
    7272}
    7373
     74/** Finalize associations. */
     75void udp_assocs_fini(void)
     76{
     77        assert(list_empty(&assoc_list));
     78
     79        amap_destroy(amap);
     80        amap = NULL;
     81}
     82
    7483/** Create new association structure.
    7584 *
     
    174183
    175184        assert(assoc->deleted == false);
     185        assoc->deleted = true;
    176186        udp_assoc_delref(assoc);
    177         assoc->deleted = true;
    178187}
    179188
Note: See TracChangeset for help on using the changeset viewer.