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

@ -3046,7 +3046,7 @@ file so that it keeps its date of modification.
wget -S http://www.gnu.ai.mit.edu/
@end example
A simple @code{ls -l} shows that the time stamp on the local file equals
A simple @code{ls -l} shows that the timestamp on the local file equals
the state of the @code{Last-Modified} header, as returned by the server.
As you can see, the time-stamping info is preserved locally, even
without @samp{-N} (at least for @sc{http}).

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

@ -88,7 +88,7 @@ clean_line (char *line, int len)
output (whatever that might be). BSD (no group) and SYSV (with
group) listings are handled.
The time stamps are stored in a separate variable, time_t
The timestamps are stored in a separate variable, time_t
compatible (I hope). The timezones are ignored. */
static struct fileinfo *
ftp_parse_unix_ls (FILE *fp, int ignore_perms)
@ -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;

View File

@ -20,7 +20,7 @@ from misc.wget_file import WgetFile
- "no_proxy=mit.edu"
- will match the domain and subdomains e.g. "www.mit.edu" or "www.subdomain.mit.edu" (Case #2)
- will match the host "mit.edu" (Case #1)
- downside: can not match only the host
- downside: cannot match only the host
"""
# Check whether the system supports translating localhost subdomains