logswan

Fast Web log analyzer using probabilistic data structures
Log | Files | Refs | README | LICENSE

commit 292ce4445e5971aa4ecdd9eeb74c6c61465c9203
parent f80eeb61c4cd996f64e86758af038f25b3bce522
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri,  9 Oct 2020 21:15:34 +0200

Constify methods and protocols names array.

Diffstat:
Msrc/config.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/config.c b/src/config.c @@ -10,7 +10,7 @@ * See LICENSE file for details. */ -char *methodsNames[] = { +const char *methodsNames[] = { "GET", "POST", "HEAD", @@ -22,7 +22,7 @@ char *methodsNames[] = { "PATCH" }; -char *protocolsNames[] = { +const char *protocolsNames[] = { "HTTP/1.1", "HTTP/1.0", "HTTP/2.0",