From 579d051d574ec3021dc549db9add3572eb460d9e Mon Sep 17 00:00:00 2001 From: hniksic Date: Mon, 9 Apr 2001 07:58:55 -0700 Subject: [PATCH] [svn] Rewrite SSL #ifdef for better indentation. --- src/ChangeLog | 4 ++++ src/http.c | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index ebf816bd..5f5cba3b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-04-09 Hrvoje Niksic + + * http.c (gethttp): Fix indentation of SSL ifdef. + 2001-04-09 Hrvoje Niksic * ftp.c (ftp_retrieve_dirs): Don't forcibly prepend "/" to u->dir; diff --git a/src/http.c b/src/http.c index 91f48666..0345e2be 100644 --- a/src/http.c +++ b/src/http.c @@ -787,11 +787,14 @@ gethttp (struct urlinfo *u, struct http_stat *hs, int *dt) /* String of the form :PORT. Used only for non-standard ports. */ port_maybe = NULL; + if (1 #ifdef HAVE_SSL - if (remport != (u->proto == URLHTTPS ? DEFAULT_HTTPS_PORT : DEFAULT_HTTP_PORT) ) + && remport != (u->proto == URLHTTPS + ? DEFAULT_HTTPS_PORT : DEFAULT_HTTP_PORT) #else - if (remport != DEFAULT_HTTP_PORT) + && remport != DEFAULT_HTTP_PORT #endif + ) { port_maybe = (char *)alloca (numdigit (remport) + 2); sprintf (port_maybe, ":%d", remport); -- 2.39.2