Module: kamailio
Branch: master
Commit: 35a87c98f4e84b65f82376dfb57050f43d0f355f
URL:
https://github.com/kamailio/kamailio/commit/35a87c98f4e84b65f82376dfb57050f…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-10-08T13:26:32+02:00
ims_usrloc_pcscf: fix warning deprecated-non-prototype
In file included from usrloc_db.c:12:
Warning: ./usrloc_db.h:131: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 use_location_pcscf_table();
^
usrloc_db.c:113:5: note: conflicting prototype is here
int use_location_pcscf_table(str *domain)
^
1 warning generated.
---
Modified: src/modules/ims_usrloc_pcscf/usrloc_db.h
---
Diff:
https://github.com/kamailio/kamailio/commit/35a87c98f4e84b65f82376dfb57050f…
Patch:
https://github.com/kamailio/kamailio/commit/35a87c98f4e84b65f82376dfb57050f…
---
diff --git a/src/modules/ims_usrloc_pcscf/usrloc_db.h
b/src/modules/ims_usrloc_pcscf/usrloc_db.h
index 3c50c153b4e..688387b1b2d 100644
--- a/src/modules/ims_usrloc_pcscf/usrloc_db.h
+++ b/src/modules/ims_usrloc_pcscf/usrloc_db.h
@@ -128,7 +128,7 @@ typedef struct reusable_buffer
int data_len;
} t_reusable_buffer;
-int use_location_pcscf_table();
+int use_location_pcscf_table(str *domain);
void destroy_db();
int init_db(const str *db_url, int db_update_period, int fetch_num_rows);
int connect_db(const str *db_url);