summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2020-09-06 09:03:14 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2020-09-06 09:03:14 +0000
commit4453405c9b81e2c8f51670def36566c8ff1fce69 (patch)
treece02ff9f5215c8143cfb669245834339d8c2a90a /usr.bin
parentd6ddcda196ae353815c50086394343ff754300d1 (diff)
Use an int for the verification depth and drop a cast.
from jca
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ftp/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index 2189b9241b4..2f6dd3f748b 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.133 2020/09/06 09:00:37 tb Exp $ */
+/* $OpenBSD: main.c,v 1.134 2020/09/06 09:03:13 tb Exp $ */
/* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */
/*
@@ -221,8 +221,8 @@ static void
process_ssl_options(char *cp)
{
const char *errstr;
- long long depth;
char *str;
+ int depth;
uint32_t protocols;
while (*cp) {
@@ -262,7 +262,7 @@ process_ssl_options(char *cp)
if (errstr)
errx(1, "certificate validation depth is %s",
errstr);
- tls_config_set_verify_depth(tls_config, (int)depth);
+ tls_config_set_verify_depth(tls_config, depth);
break;
case SSL_MUSTSTAPLE:
tls_config_ocsp_require_stapling(tls_config);