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:
Darshit Shah 2022-02-26 16:20:30 +01:00
parent be936bda56
commit 2730a00c0d
6 changed files with 8 additions and 9 deletions

View File

@ -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"

View File

@ -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));
}

View File

@ -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

View File

@ -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;