summaryrefslogtreecommitdiff
path: root/src/plugin.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2023-01-19 17:57:32 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2023-01-19 22:14:17 -0500
commit6516c5a2d4a310014df3ccba04bcaa39b7b28b83 (patch)
treea77392a4c45c9463dd9325bedb0b46a6b2fb88b0 /src/plugin.h
parent48033debc4e107cf53311cc809c4ca83fb8b3ba3 (diff)
downloadlighttpd-git-6516c5a2d4a310014df3ccba04bcaa39b7b28b83.tar.gz
[multiple] clang -Wstrict-prototypes for C2x
adjustments to compile warnings-free with recent clang changes that warn about potential behavior change for non-prototypes, including generic function pointers e.g. int(*)() x-ref: https://discourse.llvm.org/t/rfc-enabling-wstrict-prototypes-by-default-in-c/60521 https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2432.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2841.htm
Diffstat (limited to 'src/plugin.h')
-rw-r--r--src/plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugin.h b/src/plugin.h
index 1f64034c..13bf1ee5 100644
--- a/src/plugin.h
+++ b/src/plugin.h
@@ -63,7 +63,7 @@ struct plugin {
handler_t (* handle_sighup) (server *srv, void *p_d); /* at a sighup */
handler_t (* handle_waitpid) (server *srv, void *p_d, pid_t pid, int status); /* upon a child process exit */
- void *(* init) ();
+ void *(* init) (void);
handler_t (* priv_defaults) (server *srv, void *p_d);
handler_t (* set_defaults) (server *srv, void *p_d);
handler_t (* worker_init) (server *srv, void *p_d); /* at server startup (each worker after fork()) */