A minimal but flexible directory listing server
Find a file
Laslo Hunhold 32223c96bd
Use compound literals and explicit initialization
I didn't really like the use of a "yes"-variable for setsockopt().
A better way is to use compound literals (part of C99).

Another point are the structs. Instead of memsetting to zero we make
use of the standard which guarantees that "unmentioned" fields
are set to zero anyways. Just to note it here: The use of memset()
also sets padding to zero, which is not guaranteed with the method
of "unmentioned" fields.

Signed-off-by: Laslo Hunhold <dev@frign.de>
2019-05-30 23:15:47 +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 Change target prefix mapping argument order 2019-02-24 00:53:03 +01:00
http.h Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
LICENSE Fix one byte NULL stack overflow 2018-07-16 22:48:20 +02:00
main.c Use compound literals and explicit initialization 2019-05-30 23:15:47 +02:00
Makefile Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
quark.1 Improve tokenization for m- and v-flag parsing 2019-02-24 21:50:39 +01:00
resp.c Specify UTF-8 for non-binary content-types 2019-01-02 17:04:23 +01:00
resp.h Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
sock.c Use compound literals and explicit initialization 2019-05-30 23:15:47 +02:00
sock.h Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
util.c Use sizeof() - 1 rather than strlen() 2018-07-02 18:41:29 +02:00
util.h Update the documentation to reflect the new flag-centric usage 2018-03-05 09:51:29 +01:00