Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(wpabuf): simplify byte swaps #259

Merged
merged 5 commits into from
Sep 6, 2022
Merged

Commits on Sep 5, 2022

  1. refactor: use endian macros defined in endian.h

    As of glibc 2.19, the following macros are defined in `endian.h`:
      htobe16(), htole16(), be16toh(), le16toh(), htobe32(), htole32(),
      be32toh(), le32toh(), htobe64(), htole64(), be64toh(), le64toh()
    
    These macros are also defined in FreeBSD, where they are located
    in the `<sys/endian.h>` file.
    aloisklink committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    22daf1c View commit details
    Browse the repository at this point in the history
  2. refactor: remove defines for __BYTE_ORDER

    These defines are not used anywhere, and are non-standard, and
    don't appear on FreeBSD.
    (variables starting with `__` should generally not be used).
    aloisklink committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    a523dc6 View commit details
    Browse the repository at this point in the history
  3. refactor(wpabuf): remove Sparse validation defs

    Sparse is only used for checking the Linux kernel, we do not use
    it in this project.
    aloisklink committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    c0d909e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2ae0109 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2022

  1. Configuration menu
    Copy the full SHA
    0aaf983 View commit details
    Browse the repository at this point in the history