diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2020-09-05 14:11:12 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2020-09-05 14:11:12 +0000 |
commit | 2019f3851a380ea4f060ca449d2f7509de30c551 (patch) | |
tree | 4f88ed317d44fb4e5d9ab77e565bf1d910a8f560 /WWW/Library/Implementation | |
parent | e1d58e19dd12fd7cf855c7bf818a711940e7e000 (diff) | |
download | lynx-snapshots-2019f3851a380ea4f060ca449d2f7509de30c551.tar.gz |
snapshot of project "lynx", label v2-9-0dev_6
Diffstat (limited to 'WWW/Library/Implementation')
-rw-r--r-- | WWW/Library/Implementation/HTParse.c | 8 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTTCP.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/WWW/Library/Implementation/HTParse.c b/WWW/Library/Implementation/HTParse.c index 36777249..a7f648fd 100644 --- a/WWW/Library/Implementation/HTParse.c +++ b/WWW/Library/Implementation/HTParse.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTParse.c,v 1.89 2019/12/31 19:18:16 tom Exp $ + * $LynxId: HTParse.c,v 1.90 2020/09/05 00:19:54 tom Exp $ * * Parse HyperText Document Address HTParse.c * ================================ @@ -185,11 +185,11 @@ static void scan(char *name, } /*scan */ #if defined(HAVE_ALLOCA) && !defined(LY_FIND_LEAKS) -#define LYalloca(x) alloca(x) +#define LYalloca(x) alloca((size_t)(x)) #define LYalloca_free(x) {} #else -#define LYalloca(x) malloc(x) -#define LYalloca_free(x) free(x) +#define LYalloca(x) malloc((size_t)(x)) +#define LYalloca_free(x) free((void *)(x)) #endif static char *strchr_or_end(char *string, int ch) diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c index 99022e02..945c9f91 100644 --- a/WWW/Library/Implementation/HTTCP.c +++ b/WWW/Library/Implementation/HTTCP.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTTCP.c,v 1.156 2020/09/03 00:05:23 Thorsten.Glaser Exp $ + * $LynxId: HTTCP.c,v 1.157 2020/09/03 22:57:14 tom Exp $ * * Generic Communication Code HTTCP.c * ========================== @@ -2295,7 +2295,7 @@ int HTDoConnect(const char *url, /* C99 */ { unsigned short x; /* XXX 16-bit? */ - x = htons((unsigned) socks5_port); + x = htons((PortNumber) socks5_port); memcpy(&pbuf[i], (unsigned char *) &x, sizeof x); i += (unsigned) sizeof(x); } |