refactor: Use `NetworkErrorString` for macOS code in `netif.cpp` #35667

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:260706-networkerror changing 1 files +2 −3
  1. hebasto commented at 11:12 AM on July 6, 2026: member

    Although these sysctl calls report generic system errors rather than network errors, NetworkErrorString() is identical to SysErrorString() on POSIX systems, so this does not change behavior. It allows removing #include <util/syserror.h>, which was only needed by __APPLE__ code and would otherwise require an #ifdef guard to silence an IWYU unused-include warning on other platforms.

    Related to #34995.

  2. hebasto added the label Refactoring on Jul 6, 2026
  3. DrahtBot commented at 11:12 AM on July 6, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35667.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK sedited

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. hebasto commented at 11:12 AM on July 6, 2026: member

    Suggested by @fanquake in #34995 (review).

  5. refactor: Use `NetworkErrorString` for macOS code in `netif.cpp`
    Although these `sysctl` calls report generic system errors rather
    than network errors, `NetworkErrorString()` is identical to
    `SysErrorString()` on POSIX systems, so this does not change behavior.
    It allows removing `#include <util/syserror.h>`, which was only needed
    by `__APPLE__` code and would otherwise require an `#ifdef` guard to
    silence an IWYU unused-include warning on other platforms.
    eccb04a321
  6. hebasto force-pushed on Jul 6, 2026
  7. DrahtBot added the label CI failed on Jul 6, 2026
  8. DrahtBot removed the label CI failed on Jul 6, 2026
  9. sedited approved
  10. sedited commented at 3:20 PM on July 6, 2026: contributor

    ACK eccb04a321acd698dc221b826fe030cb16edd62b

  11. fanquake merged this on Jul 7, 2026
  12. fanquake closed this on Jul 7, 2026

  13. hebasto deleted the branch on Jul 7, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-07-09 06:47 UTC