[sr-dev] [kamailio/kamailio] acc: increase extra and cdr variables (PR #2891)

Daniel-Constantin Mierla notifications at github.com
Wed Oct 27 13:39:33 CEST 2021


Actually, I think it is better that the new pointer variables are still declared `static` in the `.c` files needing them, with a function that initializes them (for use in mod_init()) and another one that destroys them (in mod_destroy(). Practically copy the memory allocation/free code to their own functions in the files declaring the static pointers and expose them in `.h` files use from main file of the module.

Otherwise, some variables have pretty generic name (e.g., db_keys) and can confuse some linkers and can mess up references at runtime.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2891#issuecomment-952833907
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20211027/80818ebe/attachment.htm>


More information about the sr-dev mailing list