From 399939654a72829f64bcb148553d66e0b28363bc Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Wed, 23 Nov 2022 17:31:57 +0000 Subject: [PATCH] Fix a few areas where obscure compilers sometimes choke --- src/HttpServer.c | 1 - src/Json.c | 2 +- src/Util.c | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/HttpServer.c b/src/HttpServer.c index dfaab12..9141828 100644 --- a/src/HttpServer.c +++ b/src/HttpServer.c @@ -576,7 +576,6 @@ HttpServerWorkerThread(void *args) char *headerKey; char *headerValue; char *headerPtr; - ssize_t i; if (strcmp(line, "\r\n") == 0) { diff --git a/src/Json.c b/src/Json.c index 7491af2..d0236ea 100644 --- a/src/Json.c +++ b/src/Json.c @@ -469,7 +469,7 @@ JsonDecodeString(FILE * in) if (utf8 == 0) { /* - * We read in a \u0000, null. There is no + * We read in a 0000, null. There is no * circumstance in which putting a null * character into our buffer will end well. * diff --git a/src/Util.c b/src/Util.c index b53eed6..000eb8c 100644 --- a/src/Util.c +++ b/src/Util.c @@ -37,6 +37,10 @@ #include #include +#ifndef PATH_MAX +#define PATH_MAX 256 +#endif + unsigned long UtilServerTs(void) {