Skip to content

Conversation

@bzfbd
Copy link
Contributor

@bzfbd bzfbd commented Jun 4, 2020

Some code cleanup.

  • Make sure we compile with and without INVARIANTS in the kernel config.
  • Properly indent a block.
  • Make the QUAD sysctls UQUAD as it is uint64_t type members.
  • Properly hide unused functions behind #if 0 rather than leaving an unused stub with a TODO printf. We can go back to that once we actually call them.
  • Do export not-really-static functions rather than having static prototypes in other files for them; how did that ever work properly?
  • Add missing if_pci.h to Makefile SRCS.

Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")

Bjoern A. Zeeb added 4 commits June 2, 2020 13:42
- Make sure we compile with and without INVARIANTS in the kernel config.
- Properly indent a block.
- Make the QUAD sysctls UQUAD as it is uint64_t type members.
- Properly hide unused functions behind #if 0 rather than leaving
  an unused stub with a TODO printf.  We can go back to that once
  we actually call them.
- Do export not-really-static functions rather than having static
  prototypes in other files for them;  how did that ever work properly?

Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")
Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")
cleanly.

Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")
@bzfbd
Copy link
Contributor Author

bzfbd commented Jun 16, 2020

Hey, you picked the Makefile change out of these changes but most of the others are still not merged and given you moved forward there's some conflicts now. Would you apply them all if I once more make this compile? I'd really like not having to bother about INVARIANTS and WITNESS anymore and being able to compile a GENERIC-NODEBUG without warnings.

@erikarn
Copy link
Owner

erikarn commented Jun 16, 2020 via email

AdSchellevis added a commit to AdSchellevis/athp that referenced this pull request Jun 17, 2020
@erikarn erikarn force-pushed the master branch 2 times, most recently from c55dc6b to f1c00bf Compare July 6, 2025 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants