mirror of
https://github.com/mirror/wget.git
synced 2025-03-13 19:30:20 +08:00
Fix issues from syntax-check
* doc/wget.texi: s/time stamp/timestamp/ * src/ftp-ls.c(clean_line): Same (ftp_parse_vms_ls): Don't cast return value of x*alloc * src/ftp.c: Don't cast return value of alloca * src/css-url.c: wget.h should be the first include * testenv/Makefile.am: Use $(PATH_SEPARATOR) instead of : when declaring a path * testenv/Test-no_proxy-env.py: s/can not/cannot/
This commit is contained in:
parent
be936bda56
commit
2730a00c0d
@ -38,7 +38,7 @@ as that of the covered work. */
|
||||
a browser would ignore. That might merit some more investigation.
|
||||
*/
|
||||
|
||||
#include <wget.h>
|
||||
#include "wget.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -46,7 +46,6 @@ as that of the covered work. */
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "wget.h"
|
||||
#include "utils.h"
|
||||
#include "convert.h"
|
||||
#include "html-url.h"
|
||||
|
@ -960,7 +960,7 @@ ftp_parse_vms_ls (FILE *fp)
|
||||
/* Add the data for this item to the linked list, */
|
||||
if (!dir)
|
||||
{
|
||||
l = dir = (struct fileinfo *)xmalloc (sizeof (struct fileinfo));
|
||||
l = dir = xmalloc (sizeof (struct fileinfo));
|
||||
cur.prev = cur.next = NULL;
|
||||
memcpy (l, &cur, sizeof (cur));
|
||||
}
|
||||
@ -968,7 +968,7 @@ ftp_parse_vms_ls (FILE *fp)
|
||||
{
|
||||
cur.prev = l;
|
||||
cur.next = NULL;
|
||||
l->next = (struct fileinfo *)xmalloc (sizeof (struct fileinfo));
|
||||
l->next = xmalloc (sizeof (struct fileinfo));
|
||||
l = l->next;
|
||||
memcpy (l, &cur, sizeof (cur));
|
||||
}
|
||||
|
@ -843,7 +843,7 @@ Error in server response, closing control connection.\n"));
|
||||
if (con->rs == ST_VMS)
|
||||
{
|
||||
char *tmpp;
|
||||
char *ntarget = (char *)alloca (strlen (target) + 2);
|
||||
char *ntarget = alloca (strlen (target) + 2);
|
||||
/* We use a converted initial dir, so directories in
|
||||
TARGET will be separated with slashes, something like
|
||||
"/INITIAL/FOLDER/DIR/SUBDIR". Convert that to
|
||||
|
@ -108,7 +108,7 @@ METALINK_TESTS = \
|
||||
|
||||
AUTOMAKE_OPTIONS = parallel-tests
|
||||
AM_TESTS_ENVIRONMENT = export WGETRC=/dev/null; MAKE_CHECK=True; export MAKE_CHECK;\
|
||||
export PYTHONPATH=$$PYTHONPATH:$(srcdir); export VALGRIND_TESTS="@VALGRIND_TESTS@";
|
||||
export PYTHONPATH=$$PYTHONPATH$(PATH_SEPARATOR)$(srcdir); export VALGRIND_TESTS="@VALGRIND_TESTS@";
|
||||
|
||||
if WITH_SSL
|
||||
AM_TESTS_ENVIRONMENT += export SSL_TESTS=1;
|
||||
|
Loading…
Reference in New Issue
Block a user