diff options
| author | Lucas Castro <lucas@gnuabordo.com.br> | 2024-08-08 21:28:54 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-08-25 17:34:39 -0300 |
| commit | a153ce09e64bfd10e90ea4f6a4bc5f1a1073ab40 (patch) | |
| tree | b5cdd251583620a4a592ea24fd98c5d1910007c3 | |
| parent | f50bcce693e762893993809f241bbc3cfb108d3a (diff) | |
[PATCH 1/2] Fix casting function addresspatch-queue/debian/unstable
function attempted to return function address without cast type
It was required to modified it for successful build
Gbp-Pq: Name 0003-Fix-casting-function-address.patch
| -rw-r--r-- | promhttp/src/promhttp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/promhttp/src/promhttp.c b/promhttp/src/promhttp.c index d94a53e..ef359c2 100644 --- a/promhttp/src/promhttp.c +++ b/promhttp/src/promhttp.c @@ -61,5 +61,5 @@ int promhttp_handler(void *cls, struct MHD_Connection *connection, const char *u struct MHD_Daemon *promhttp_start_daemon(unsigned int flags, unsigned short port, MHD_AcceptPolicyCallback apc, void *apc_cls) { - return MHD_start_daemon(flags, port, apc, apc_cls, &promhttp_handler, NULL, MHD_OPTION_END); + return MHD_start_daemon(flags, port, apc, apc_cls, (MHD_AccessHandlerCallback)(&promhttp_handler), NULL, MHD_OPTION_END); } |
