kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 84d2c7fa0d63c1e67e75a89cdfad86899875fe64
parent 21b148e3a596f988b4fff965535e3ac230049d71
Author: Joris Vink <joris@coders.se>
Date:   Mon, 16 Dec 2013 18:00:33 +0100

ULONG_MAX -> LONG_MAX

Diffstat:
src/config.c | 4++--
src/http.c | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/config.c b/src/config.c @@ -573,7 +573,7 @@ configure_http_postbody_max(char **argv) return (KORE_RESULT_ERROR); } - http_postbody_max = kore_strtonum(argv[1], 10, 1, ULONG_MAX, &err); + http_postbody_max = kore_strtonum(argv[1], 10, 1, LONG_MAX, &err); if (err != KORE_RESULT_OK) { printf("bad http_postbody_max value: %s\n", argv[1]); return (KORE_RESULT_ERROR); @@ -595,7 +595,7 @@ configure_http_hsts_enable(char **argv) return (KORE_RESULT_ERROR); } - http_hsts_enable = kore_strtonum(argv[1], 10, 0, ULONG_MAX, &err); + http_hsts_enable = kore_strtonum(argv[1], 10, 0, LONG_MAX, &err); if (err != KORE_RESULT_OK) { printf("bad http_hsts_enable value: %s\n", argv[1]); return (KORE_RESULT_ERROR); diff --git a/src/http.c b/src/http.c @@ -472,7 +472,7 @@ http_header_recv(struct netbuf *nb) return (KORE_RESULT_ERROR); } - clen = kore_strtonum(p, 10, 0, ULONG_MAX, &v); + clen = kore_strtonum(p, 10, 0, LONG_MAX, &v); if (v == KORE_RESULT_ERROR) { kore_mem_free(p); kore_debug("content-length invalid: %s", p);