summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2010-10-24 01:05:10 +0000
committeremaste <emaste@FreeBSD.org>2010-10-24 01:05:10 +0000
commitc50e7d346796550643b026f30bcfd45195edba69 (patch)
tree408d44b46b0d487c4ea4afd51abc6f3f93a6ec02
parent588f6113eb0b6c90b6c04c5610fd020f6936fb02 (diff)
downloadFreeBSD-src-c50e7d346796550643b026f30bcfd45195edba69.zip
FreeBSD-src-c50e7d346796550643b026f30bcfd45195edba69.tar.gz
Move variable declarations into the conditional block where they are
used, to fix warning if WITH_SSL is not set. Submitted by: Sean Bruno MFC after: 1 week
-rw-r--r--lib/libfetch/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c
index adeeb45..ff10d27 100644
--- a/lib/libfetch/common.c
+++ b/lib/libfetch/common.c
@@ -321,9 +321,9 @@ fetch_connect(const char *host, int port, int af, int verbose)
int
fetch_ssl(conn_t *conn, int verbose)
{
+#ifdef WITH_SSL
int ret, ssl_err;
-#ifdef WITH_SSL
/* Init the SSL library and context */
if (!SSL_library_init()){
fprintf(stderr, "SSL library init failed\n");
OpenPOWER on IntegriCloud