]> sjero.net Git - wget/commitdiff
[svn] Don't declare log_* functions in main.c.
authorhniksic <devnull@localhost>
Thu, 6 Nov 2003 22:48:17 +0000 (14:48 -0800)
committerhniksic <devnull@localhost>
Thu, 6 Nov 2003 22:48:17 +0000 (14:48 -0800)
src/ChangeLog
src/log.h
src/main.c

index 5c07af86db050dbb172dfd3320a508b3c0a43b43..2555c951f1f2a461531247b073971b1ee744e8b7 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-06  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * log.h: Declare log_init, log_close, and
+       log_request_redirect_output here.
+
 2003-11-05  Dennis Smit  <ds@nerds-incorporated.org>
 
        * main.c: (main): added --preserve-permissions option.
index c8c3ab1bdc67bd5cb4c4e00660b9bbf565870f17..29c484eea06fc60494f8f04f6f8a189b450a5216 100644 (file)
--- a/src/log.h
+++ b/src/log.h
@@ -55,4 +55,8 @@ void logflush PARAMS ((void));
 void log_set_flush PARAMS ((int));
 int log_set_save_context PARAMS ((int));
 
+void log_init PARAMS ((const char *, int));
+void log_close PARAMS ((void));
+void log_request_redirect_output PARAMS ((const char *));
+
 #endif /* LOG_H */
index eaeaa77057e4589419a646d54d9623a4c610cb7c..9a9aef2df28d0ace18a73699497b84c02387a850 100644 (file)
@@ -81,11 +81,6 @@ extern char *version_string;
 
 extern struct cookie_jar *wget_cookie_jar;
 
-/* From log.c.  */
-void log_init PARAMS ((const char *, int));
-void log_close PARAMS ((void));
-void log_request_redirect_output PARAMS ((const char *));
-
 static RETSIGTYPE redirect_output_signal PARAMS ((int));
 
 const char *exec_name;
@@ -342,8 +337,11 @@ init_switches (void)
            }
        }
     }
-  xzero (long_options[o]);
+  /* Terminate short_options. */
   *p = '\0';
+  /* No need for xzero(long_options[o]) because its storage is static
+     and it will be zeroed by default.  */
+  assert (o <= countof (long_options));
 }
 
 /* Print the usage message.  */