mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Various small fixes, courtesy of Gisle Vanem <giva@bgnett.no>.
This commit is contained in:
parent
cfc064c9b7
commit
248cb3e907
@ -1,3 +1,13 @@
|
|||||||
|
2007-08-27 Gisle Vanem <giva@bgnett.no>
|
||||||
|
|
||||||
|
* mswindows.c (run_with_timeout): Ensure that the correct
|
||||||
|
conversion specification is used for the return result of
|
||||||
|
the GetLastError function.
|
||||||
|
* getopt.c: Fix missing (but, accidentally, legal) comment
|
||||||
|
delimiter after licensing text.
|
||||||
|
* recur.c (retrieve_tree): Inserted missing cast for strip_auth.
|
||||||
|
* openssl.c (ssl_init): const-ified the meth local variable.
|
||||||
|
|
||||||
2007-08-27 Micah Cowan <micah@cowan.name>
|
2007-08-27 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* wget.h: Added macro replacement for ngettext, for environs
|
* wget.h: Added macro replacement for ngettext, for environs
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
/* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
|
/* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
|
||||||
Ditto for AIX 3.2 and <stdlib.h>. */
|
Ditto for AIX 3.2 and <stdlib.h>. */
|
||||||
|
@ -545,7 +545,8 @@ run_with_timeout (double seconds, void (*fun) (void *), void *arg)
|
|||||||
&thread_arg, 0, &thread_id);
|
&thread_arg, 0, &thread_id);
|
||||||
if (!thread_hnd)
|
if (!thread_hnd)
|
||||||
{
|
{
|
||||||
DEBUGP (("CreateThread() failed; [0x%x]\n", GetLastError ()));
|
DEBUGP (("CreateThread() failed; [%#lx]\n",
|
||||||
|
(unsigned long) GetLastError ()));
|
||||||
goto blocking_fallback;
|
goto blocking_fallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ key_type_to_ssl_type (enum keyfile_type type)
|
|||||||
bool
|
bool
|
||||||
ssl_init ()
|
ssl_init ()
|
||||||
{
|
{
|
||||||
SSL_METHOD *meth;
|
const SSL_METHOD *meth;
|
||||||
|
|
||||||
if (ssl_ctx)
|
if (ssl_ctx)
|
||||||
/* The SSL has already been initialized. */
|
/* The SSL has already been initialized. */
|
||||||
|
@ -325,7 +325,7 @@ retrieve_tree (const char *start_url)
|
|||||||
struct urlpos *child = children;
|
struct urlpos *child = children;
|
||||||
struct url *url_parsed = url_parsed = url_parse (url, NULL);
|
struct url *url_parsed = url_parsed = url_parse (url, NULL);
|
||||||
char *referer_url = url;
|
char *referer_url = url;
|
||||||
bool strip_auth = url_parsed->user;
|
bool strip_auth = (bool)url_parsed->user;
|
||||||
assert (url_parsed != NULL);
|
assert (url_parsed != NULL);
|
||||||
|
|
||||||
/* Strip auth info if present */
|
/* Strip auth info if present */
|
||||||
|
Loading…
Reference in New Issue
Block a user