Module: kamailio
Branch: master
Commit: 03e49d4e1d806f39ee6aadaedd183a6578108d96
URL:
https://github.com/kamailio/kamailio/commit/03e49d4e1d806f39ee6aadaedd183a6…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-10-08T13:07:37+02:00
presence: fix warning conflicting prototype
Warning: presence_dmq.c:38:5: warning: a function
declaration without a prototype is deprecated in all versions of C and is treated as a
zero-parameter prototype in C2x, conflicting with a subsequent definition
[-Wdeprecated-non-prototype]
int pres_dmq_send_all_presentities();
^
presence_dmq.c:487:5: note: conflicting prototype is here
int pres_dmq_send_all_presentities(dmq_node_t *dmq_node)
^
1 warning generated.
---
Modified: src/modules/presence/presence_dmq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/03e49d4e1d806f39ee6aadaedd183a6…
Patch:
https://github.com/kamailio/kamailio/commit/03e49d4e1d806f39ee6aadaedd183a6…
---
diff --git a/src/modules/presence/presence_dmq.c b/src/modules/presence/presence_dmq.c
index 97c6f5831b5..2e26187383f 100644
--- a/src/modules/presence/presence_dmq.c
+++ b/src/modules/presence/presence_dmq.c
@@ -35,7 +35,7 @@ dmq_api_t pres_dmqb;
dmq_peer_t *pres_dmq_peer = NULL;
dmq_resp_cback_t pres_dmq_resp_callback = {&pres_dmq_resp_callback_f, 0};
-int pres_dmq_send_all_presentities();
+int pres_dmq_send_all_presentities(dmq_node_t *dmq_node);
int pres_dmq_request_sync();
/**