]> sjero.net Git - wget/blobdiff - src/main.c
[svn] A bunch of new features:
[wget] / src / main.c
index 300a82e4bb181a4c1c4bc0e6b17195c6769bc079..ca4f7f233fc40eff7d6088fcb92a80cd5200db01 100644 (file)
@@ -97,6 +97,20 @@ i18n_initialize (void)
   textdomain ("wget");
 #endif /* HAVE_NLS */
 }
+
+/* It's kosher to declare these here because their interface _has_ to
+   be void foo(void).  */
+void url_init PARAMS ((void));
+void host_init PARAMS ((void));
+
+/* This just calls the various initialization functions from the
+   modules that need one-time initialization. */
+static void
+private_initialize (void)
+{
+  url_init ();
+  host_init ();
+}
 \f
 /* Print the usage message.  */
 static void
@@ -293,6 +307,7 @@ main (int argc, char *const *argv)
   };
 
   i18n_initialize ();
+  private_initialize ();
 
   append_to_log = 0;