diff options
author | наб <[email protected]> | 2022-01-22 01:56:46 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-03-15 15:13:48 -0700 |
commit | d465fc584425c618f8baa13a31b70ffabe053484 (patch) | |
tree | d5c120208b294829231adc7d7efbb28fdee3adcd /cmd/zinject | |
parent | 861166b02701dfc8f63a105bd32758e806c84fd7 (diff) |
Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12996
Diffstat (limited to 'cmd/zinject')
-rw-r--r-- | cmd/zinject/translate.c | 3 | ||||
-rw-r--r-- | cmd/zinject/zinject.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/cmd/zinject/translate.c b/cmd/zinject/translate.c index 4939c0b85..2b5f1fcd9 100644 --- a/cmd/zinject/translate.c +++ b/cmd/zinject/translate.c @@ -31,7 +31,7 @@ #include <stddef.h> #include <stdio.h> #include <stdlib.h> -#include <strings.h> +#include <string.h> #include <sys/file.h> #include <sys/mntent.h> #include <sys/mnttab.h> @@ -186,6 +186,7 @@ initialize_range(err_type_t type, int level, char *range, switch (type) { default: break; + case TYPE_DATA: break; diff --git a/cmd/zinject/zinject.c b/cmd/zinject/zinject.c index 10d5dbe90..74c54baeb 100644 --- a/cmd/zinject/zinject.c +++ b/cmd/zinject/zinject.c @@ -144,6 +144,7 @@ #include <fcntl.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <strings.h> #include <unistd.h> @@ -159,7 +160,7 @@ libzfs_handle_t *g_zfs; int zfs_fd; -static const char *errtable[TYPE_INVAL] = { +static const char *const errtable[TYPE_INVAL] = { "data", "dnode", "mos", |