]> sjero.net Git - wget/commitdiff
[svn] Rewrite SSL #ifdef for better indentation.
authorhniksic <devnull@localhost>
Mon, 9 Apr 2001 14:58:55 +0000 (07:58 -0700)
committerhniksic <devnull@localhost>
Mon, 9 Apr 2001 14:58:55 +0000 (07:58 -0700)
src/ChangeLog
src/http.c

index ebf816bdcd0d27dad23f14303ae1786240b73161..5f5cba3ba07a6673c240f55b07d9f9e3fecad8a1 100644 (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;
index 91f486668399213efb837ece75a8e589d38aef2a..0345e2be274b4da445e5b8bbe23aabcc09676268 100644 (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);