Changeset 36795edf in mainline for uspace/lib/nic/src


Ignore:
Timestamp:
2021-03-12T19:16:51Z (4 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a85d5c6
Parents:
17fac946
Message:

Improve lists and other data structures

Provide more standard-compliant member_to_inst implementation that uses
offsetof. Avoid potential undefined behavior in list_foreach and
list_foreach_rev by avoiding assinging an unaligned pointer value. Use
size_t instead of unsigned long for list length.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/src/nic_addr_db.c

    r17fac946 r36795edf  
    3535 * @brief Generic hash-set based database of addresses
    3636 */
     37
    3738#include "nic_addr_db.h"
    3839#include <assert.h>
     
    4142#include <errno.h>
    4243#include <mem.h>
     44#include <member.h>
    4345#include <adt/hash_table.h>
    4446#include <macros.h>
Note: See TracChangeset for help on using the changeset viewer.