Tree for my work on http://tools.suckless.org/quark/
Find a file
Laslo Hunhold 65600ffe7a
Reduce global state by localizing the server-struct
The server-struct variable s was global, which made it readable and
modifiable from any point in the code. Making it a local variable in
main() instead and passing it as a pointer to constant memory to each
function needing it makes much more sense and allows the compiler to
warn us if we do try to modify it, which it wouldn't have before.

Signed-off-by: Laslo Hunhold <dev@frign.de>
2020-08-17 11:37:25 +02:00
arg.h Correct arg.h license 2018-07-16 11:49:51 +02:00
config.def.h Specify UTF-8 for non-binary content-types 2019-01-02 17:04:23 +01:00
config.mk Be extra pedantic again and remove all warnings 2018-03-05 00:30:53 +01:00
http.c Reduce global state by localizing the server-struct 2020-08-17 11:37:25 +02:00
http.h Reduce global state by localizing the server-struct 2020-08-17 11:37:25 +02:00
LICENSE Use timegm() instead of mktime() to generate UNIX-timestamp 2020-07-23 16:48:34 +02:00
main.c Reduce global state by localizing the server-struct 2020-08-17 11:37:25 +02:00
Makefile Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
quark.1 Make host parameters optional 2020-04-21 17:04:52 +02:00
resp.c Replace off_t with size_t 2020-08-05 18:59:55 +02:00
resp.h Replace off_t with size_t 2020-08-05 18:59:55 +02:00
sock.c Ensure const-correctness where possible and refactor parse_range() 2020-08-05 18:28:21 +02:00
sock.h Ensure const-correctness where possible and refactor parse_range() 2020-08-05 18:28:21 +02:00
util.c Reduce global state by localizing the server-struct 2020-08-17 11:37:25 +02:00
util.h Reduce global state by localizing the server-struct 2020-08-17 11:37:25 +02:00