HomeFreeBSD

Cleanup: zhack should not declare function prototypes in main()

Description

Cleanup: zhack should not declare function prototypes in main()

Instead, it should include the proper header.

CodeQL caught this.

Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14263

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Dec 4 2022, 2:09 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 8 2022, 9:51 PM
Parents
rG062005122443: ZTS: Add missing tests to Makefile.am
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGaaa9a6700f98: Cleanup: zhack should not declare function prototypes in main() (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Dec 8 2022, 9:51 PM