diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-02-11 12:22:45 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-02-11 12:22:45 +0000 |
commit | f75784d34d6dd0ee2a656a60717a56ecd2faff66 (patch) | |
tree | 2285437459e39223f0ad4d2b115e8be3ded51918 | |
parent | 4272f130cbfa349125b6e083df78586c0546d38f (diff) |
getopt(3) returns int, not char. Fix type of ch variable to prevent
sign error during arm regress.
-rw-r--r-- | regress/lib/libssl/interop/client.c | 6 | ||||
-rw-r--r-- | regress/lib/libssl/interop/server.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/regress/lib/libssl/interop/client.c b/regress/lib/libssl/interop/client.c index 0b5827c4476..6f148378955 100644 --- a/regress/lib/libssl/interop/client.c +++ b/regress/lib/libssl/interop/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.5 2018/11/10 08:33:45 bluhm Exp $ */ +/* $OpenBSD: client.c,v 1.6 2019/02/11 12:22:44 bluhm Exp $ */ /* * Copyright (c) 2018 Alexander Bluhm <bluhm@openbsd.org> * @@ -47,8 +47,8 @@ main(int argc, char *argv[]) SSL *ssl; BIO *bio; SSL_SESSION *session = NULL; - int error, sessionreuse = 0, verify = 0; - char buf[256], ch; + int ch, error, sessionreuse = 0, verify = 0; + char buf[256]; char *ca = NULL, *crt = NULL, *key = NULL; char *host_port, *host, *port; diff --git a/regress/lib/libssl/interop/server.c b/regress/lib/libssl/interop/server.c index f50f368bb19..3cbadda4c5b 100644 --- a/regress/lib/libssl/interop/server.c +++ b/regress/lib/libssl/interop/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.5 2018/11/10 08:33:45 bluhm Exp $ */ +/* $OpenBSD: server.c,v 1.6 2019/02/11 12:22:44 bluhm Exp $ */ /* * Copyright (c) 2018 Alexander Bluhm <bluhm@openbsd.org> * @@ -48,8 +48,8 @@ main(int argc, char *argv[]) SSL *ssl; BIO *abio, *cbio; SSL_SESSION *session; - int error, sessionreuse = 0, verify = 0; - char buf[256], ch; + int ch, error, sessionreuse = 0, verify = 0; + char buf[256]; char *ca = NULL, *crt = NULL, *key = NULL; char *host_port, *host = "127.0.0.1", *port = "0"; |