summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbluhm <>2019-02-11 12:22:44 +0000
committerbluhm <>2019-02-11 12:22:44 +0000
commitbc7cd6de243436fe1c7d5d876b63335ee03c3250 (patch)
tree9e7d73f77f0fba9bb922cd428a4902503593b7b5 /src
parent1184ea5866cf47948bb8160972cb5082f15d7aeb (diff)
downloadopenbsd-bc7cd6de243436fe1c7d5d876b63335ee03c3250.tar.gz
openbsd-bc7cd6de243436fe1c7d5d876b63335ee03c3250.tar.bz2
openbsd-bc7cd6de243436fe1c7d5d876b63335ee03c3250.zip
getopt(3) returns int, not char. Fix type of ch variable to prevent
sign error during arm regress.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libssl/interop/client.c6
-rw-r--r--src/regress/lib/libssl/interop/server.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/regress/lib/libssl/interop/client.c b/src/regress/lib/libssl/interop/client.c
index 0b5827c447..6f14837895 100644
--- a/src/regress/lib/libssl/interop/client.c
+++ b/src/regress/lib/libssl/interop/client.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: client.c,v 1.5 2018/11/10 08:33:45 bluhm Exp $ */ 1/* $OpenBSD: client.c,v 1.6 2019/02/11 12:22:44 bluhm Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Alexander Bluhm <bluhm@openbsd.org> 3 * Copyright (c) 2018 Alexander Bluhm <bluhm@openbsd.org>
4 * 4 *
@@ -47,8 +47,8 @@ main(int argc, char *argv[])
47 SSL *ssl; 47 SSL *ssl;
48 BIO *bio; 48 BIO *bio;
49 SSL_SESSION *session = NULL; 49 SSL_SESSION *session = NULL;
50 int error, sessionreuse = 0, verify = 0; 50 int ch, error, sessionreuse = 0, verify = 0;
51 char buf[256], ch; 51 char buf[256];
52 char *ca = NULL, *crt = NULL, *key = NULL; 52 char *ca = NULL, *crt = NULL, *key = NULL;
53 char *host_port, *host, *port; 53 char *host_port, *host, *port;
54 54
diff --git a/src/regress/lib/libssl/interop/server.c b/src/regress/lib/libssl/interop/server.c
index f50f368bb1..3cbadda4c5 100644
--- a/src/regress/lib/libssl/interop/server.c
+++ b/src/regress/lib/libssl/interop/server.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: server.c,v 1.5 2018/11/10 08:33:45 bluhm Exp $ */ 1/* $OpenBSD: server.c,v 1.6 2019/02/11 12:22:44 bluhm Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Alexander Bluhm <bluhm@openbsd.org> 3 * Copyright (c) 2018 Alexander Bluhm <bluhm@openbsd.org>
4 * 4 *
@@ -48,8 +48,8 @@ main(int argc, char *argv[])
48 SSL *ssl; 48 SSL *ssl;
49 BIO *abio, *cbio; 49 BIO *abio, *cbio;
50 SSL_SESSION *session; 50 SSL_SESSION *session;
51 int error, sessionreuse = 0, verify = 0; 51 int ch, error, sessionreuse = 0, verify = 0;
52 char buf[256], ch; 52 char buf[256];
53 char *ca = NULL, *crt = NULL, *key = NULL; 53 char *ca = NULL, *crt = NULL, *key = NULL;
54 char *host_port, *host = "127.0.0.1", *port = "0"; 54 char *host_port, *host = "127.0.0.1", *port = "0";
55 55