Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp mark function as only needed with ssl.
details: https://anonhg.NetBSD.org/src/rev/0c3e04d373c3
branches: trunk
changeset: 342348:0c3e04d373c3
user: christos <christos%NetBSD.org@localhost>
date: Thu Dec 17 20:36:36 2015 +0000
description:
mark function as only needed with ssl.
diffstat:
usr.bin/ftp/fetch.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r a47d080241ac -r 0c3e04d373c3 usr.bin/ftp/fetch.c
--- a/usr.bin/ftp/fetch.c Thu Dec 17 17:26:45 2015 +0000
+++ b/usr.bin/ftp/fetch.c Thu Dec 17 20:36:36 2015 +0000
@@ -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 @@
return hasleading;
}
+#ifdef WITH_SSL
static void
print_connect(FETCH *fin, const struct urlinfo *ui)
{
@@ -848,6 +849,7 @@
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
Home |
Main Index |
Thread Index |
Old Index