mirror of
https://github.com/mirror/wget.git
synced 2025-01-22 18:21:03 +08:00
[svn] Rewrite SSL #ifdef for better indentation.
This commit is contained in:
parent
0c70c624f9
commit
579d051d57
@ -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>
|
2001-04-09 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
* ftp.c (ftp_retrieve_dirs): Don't forcibly prepend "/" to u->dir;
|
* ftp.c (ftp_retrieve_dirs): Don't forcibly prepend "/" to u->dir;
|
||||||
|
@ -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. */
|
/* String of the form :PORT. Used only for non-standard ports. */
|
||||||
port_maybe = NULL;
|
port_maybe = NULL;
|
||||||
|
if (1
|
||||||
#ifdef HAVE_SSL
|
#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
|
#else
|
||||||
if (remport != DEFAULT_HTTP_PORT)
|
&& remport != DEFAULT_HTTP_PORT
|
||||||
#endif
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
port_maybe = (char *)alloca (numdigit (remport) + 2);
|
port_maybe = (char *)alloca (numdigit (remport) + 2);
|
||||||
sprintf (port_maybe, ":%d", remport);
|
sprintf (port_maybe, ":%d", remport);
|
||||||
|
Loading…
Reference in New Issue
Block a user