Changeset d5ed54b in mainline for uspace/lib/inet/src/addr.c


Ignore:
Timestamp:
2021-08-08T08:31:02Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b4edc96
Parents:
f05edcb
Message:

Use assignment operator to copy Ethernet addresses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/inet/src/addr.c

    rf05edcb rd5ed54b  
    7171        .addr6 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
    7272};
    73 
    74 void addr48(const addr48_t *src, addr48_t *dst)
    75 {
    76         memcpy(dst, src, sizeof(addr48_t));
    77 }
    7873
    7974void addr128(const addr128_t src, addr128_t dst)
Note: See TracChangeset for help on using the changeset viewer.