aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd/zfs/zfs_main.c2
-rw-r--r--cmd/zfs_ids_to_path/zfs_ids_to_path.c2
-rw-r--r--cmd/zpool/zpool_main.c2
-rw-r--r--cmd/zstream/zstream_redup.c2
-rw-r--r--tests/zfs-tests/cmd/btree_test/btree_test.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c
index 8064f6363..ab2b006ae 100644
--- a/cmd/zfs/zfs_main.c
+++ b/cmd/zfs/zfs_main.c
@@ -8492,7 +8492,7 @@ zfs_do_wait(int argc, char **argv)
{
boolean_t enabled[ZFS_WAIT_NUM_ACTIVITIES];
int error, i;
- char c;
+ int c;
/* By default, wait for all types of activity. */
for (i = 0; i < ZFS_WAIT_NUM_ACTIVITIES; i++)
diff --git a/cmd/zfs_ids_to_path/zfs_ids_to_path.c b/cmd/zfs_ids_to_path/zfs_ids_to_path.c
index 6cfaa6f41..80dd5bf2d 100644
--- a/cmd/zfs_ids_to_path/zfs_ids_to_path.c
+++ b/cmd/zfs_ids_to_path/zfs_ids_to_path.c
@@ -44,7 +44,7 @@ int
main(int argc, char **argv)
{
boolean_t verbose = B_FALSE;
- char c;
+ int c;
while ((c = getopt(argc, argv, "v")) != -1) {
switch (c) {
case 'v':
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c
index c84f30ccb..e00fdb7ae 100644
--- a/cmd/zpool/zpool_main.c
+++ b/cmd/zpool/zpool_main.c
@@ -10147,7 +10147,7 @@ int
zpool_do_wait(int argc, char **argv)
{
boolean_t verbose = B_FALSE;
- char c;
+ int c;
char *value;
int i;
unsigned long count;
diff --git a/cmd/zstream/zstream_redup.c b/cmd/zstream/zstream_redup.c
index 379025ce5..41f1068e3 100644
--- a/cmd/zstream/zstream_redup.c
+++ b/cmd/zstream/zstream_redup.c
@@ -421,7 +421,7 @@ int
zstream_do_redup(int argc, char *argv[])
{
boolean_t verbose = B_FALSE;
- char c;
+ int c;
while ((c = getopt(argc, argv, "v")) != -1) {
switch (c) {
diff --git a/tests/zfs-tests/cmd/btree_test/btree_test.c b/tests/zfs-tests/cmd/btree_test/btree_test.c
index e1995c03a..8de14ff2a 100644
--- a/tests/zfs-tests/cmd/btree_test/btree_test.c
+++ b/tests/zfs-tests/cmd/btree_test/btree_test.c
@@ -457,7 +457,7 @@ main(int argc, char *argv[])
int failed_tests = 0;
struct timeval tp;
zfs_btree_t bt;
- char c;
+ int c;
while ((c = getopt(argc, argv, "c:l:n:r:st:")) != -1) {
switch (c) {