diff options
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", |