Module Name:    src
Committed By:   christos
Date:           Thu Dec 17 20:36:36 UTC 2015

Modified Files:
        src/usr.bin/ftp: fetch.c

Log Message:
mark function as only needed with ssl.


To generate a diff of this commit:
cvs rdiff -u -r1.218 -r1.219 src/usr.bin/ftp/fetch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/ftp/fetch.c
diff -u src/usr.bin/ftp/fetch.c:1.218 src/usr.bin/ftp/fetch.c:1.219
--- src/usr.bin/ftp/fetch.c:1.218	Thu Dec 17 12:26:45 2015
+++ src/usr.bin/ftp/fetch.c	Thu Dec 17 15:36:36 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: fetch.c,v 1.218 2015/12/17 17:26:45 christos Exp $	*/
+/*	$NetBSD: fetch.c,v 1.219 2015/12/17 20:36:36 christos Exp $	*/
 
 /*-
  * Copyright (c) 1997-2015 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: fetch.c,v 1.218 2015/12/17 17:26:45 christos Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.219 2015/12/17 20:36:36 christos Exp $");
 #endif /* not lint */
 
 /*
@@ -825,6 +825,7 @@ print_proxy(FETCH *fin, int hasleading, 
 	return hasleading;
 }
 
+#ifdef WITH_SSL
 static void
 print_connect(FETCH *fin, const struct urlinfo *ui)
 {
@@ -848,6 +849,7 @@ print_connect(FETCH *fin, const struct u
 	fetch_printf(fin, "CONNECT %s:%s HTTP/1.1\r\n", h, ui->port);
 	fetch_printf(fin, "Host: %s:%s\r\n", h, ui->port);
 }
+#endif
 
 #define C_OK 0
 #define C_CLEANUP 1

Reply via email to