aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zstream
diff options
context:
space:
mode:
authorsterlingjensen <[email protected]>2020-12-17 12:19:30 -0600
committerGitHub <[email protected]>2020-12-17 10:19:30 -0800
commitfb188409f1b60390e3c8e4bbb18f887be44887e1 (patch)
treec18154fade3f94533d0db79c14451c3bc9dd8fc4 /cmd/zstream
parentbe5c6d96530e19efde7c0af771f9ddb0073ef751 (diff)
Use the correct return type for getopt
Use the correct return type for getopt otherwise clang complains about tautological-constant-out-of-range-compare. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Sterling Jensen <[email protected]> Closes #11359
Diffstat (limited to 'cmd/zstream')
-rw-r--r--cmd/zstream/zstream_redup.c2
1 files changed, 1 insertions, 1 deletions
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) {