diff options
author | Richard Yao <[email protected]> | 2022-12-03 21:09:42 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-12-08 13:51:24 -0800 |
commit | aaa9a6700f98a62386fcdcb8e89cab884d616c5d (patch) | |
tree | 31a5a868887f8a1d94a56e3c2b7f2f8ce809b50d /cmd | |
parent | 062005122443945a5dd17c3e4edccd201dc39837 (diff) |
Cleanup: zhack should not declare function prototypes in main()
Instead, it should include the proper header.
CodeQL caught this.
Reviewed-by: Damian Szuberski <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Richard Yao <[email protected]>
Closes #14263
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zhack.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/zhack.c b/cmd/zhack.c index a1063ab14..0b6da31ec 100644 --- a/cmd/zhack.c +++ b/cmd/zhack.c @@ -30,6 +30,7 @@ * result in corrupted pools. */ +#include <zfs_prop.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -646,8 +647,6 @@ zhack_do_label(int argc, char **argv) int main(int argc, char **argv) { - extern void zfs_prop_init(void); - char *path[MAX_NUM_PATHS]; const char *subcommand; int rv = 0; |