diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-07-02 03:03:19 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-03 23:11:34 -0400 |
commit | 96c1b1ddc168e50a52864df7aa09aaf6b6dbe714 (patch) | |
tree | 2117ba07fe01da9d614dd8d2351b374eefef1026 /src | |
parent | 5e5ba0408a24e6e1389e5c542839fe4e3e160a39 (diff) | |
download | lighttpd-git-96c1b1ddc168e50a52864df7aa09aaf6b6dbe714.tar.gz |
[core] _WIN32 casts to quiet some VS warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/configfile.c | 2 | ||||
-rw-r--r-- | src/lemon.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/configfile.c b/src/configfile.c index 6a726745..50bedda1 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -2516,7 +2516,7 @@ int config_remoteip_normalize(buffer * const b, buffer * const tb) { if (NULL != slash) { char *nptr; nm_bits = strtoul(slash + 1, &nptr, 10); - if (*nptr || 0 == nm_bits || nm_bits > (NULL != colon ? 128 : 32)) { + if (*nptr || 0 == nm_bits || nm_bits > (NULL != colon ? 128u : 32u)) { /*(also rejects (slash+1 == nptr) which results in nm_bits = 0)*/ return -1; } diff --git a/src/lemon.c b/src/lemon.c index 907af878..4b5c87ac 100644 --- a/src/lemon.c +++ b/src/lemon.c @@ -6,6 +6,10 @@ ** ** The author of this program disclaims copyright. */ +#ifdef _MSC_VER +#define _CRT_SECURE_NO_WARNINGS +#endif + #include <stdio.h> #include <stdarg.h> #include <string.h> |