svn commit: r214256 - head/lib/libfetch

Ed Maste emaste at FreeBSD.org
Sun Oct 24 01:05:10 UTC 2010


Author: emaste
Date: Sun Oct 24 01:05:10 2010
New Revision: 214256
URL: http://svn.freebsd.org/changeset/base/214256

Log:
  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

Modified:
  head/lib/libfetch/common.c

Modified: head/lib/libfetch/common.c
==============================================================================
--- head/lib/libfetch/common.c	Sat Oct 23 22:28:29 2010	(r214255)
+++ head/lib/libfetch/common.c	Sun Oct 24 01:05:10 2010	(r214256)
@@ -321,9 +321,9 @@ fetch_connect(const char *host, int port
 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");


More information about the svn-src-head mailing list