1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Rewrite SSL #ifdef for better indentation.

This commit is contained in:
hniksic 2001-04-09 07:58:55 -07:00
parent 0c70c624f9
commit 579d051d57
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-04-09 Hrvoje Niksic <hniksic@arsdigita.com>
* http.c (gethttp): Fix indentation of SSL ifdef.
2001-04-09 Hrvoje Niksic <hniksic@arsdigita.com>
* ftp.c (ftp_retrieve_dirs): Don't forcibly prepend "/" to u->dir;

View File

@ -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);