Module: kamailio Branch: master Commit: 639cc31e7c75857e807bbf65f173e8619a927437 URL: https://github.com/kamailio/kamailio/commit/639cc31e7c75857e807bbf65f173e8619a927437
Author: mt.ghafari <[email protected]> Committer: Henning Westerholt <[email protected]> Date: 2026-06-24T10:49:26+02:00 secfilter: restrict helper functions to static scope - Encapsulate secf_trim_quotes and parse_name within the translation unit. --- Modified: src/modules/secfilter/secfilter_hdr.c --- Diff: https://github.com/kamailio/kamailio/commit/639cc31e7c75857e807bbf65f173e8619a927437.diff Patch: https://github.com/kamailio/kamailio/commit/639cc31e7c75857e807bbf65f173e8619a927437.patch --- diff --git a/src/modules/secfilter/secfilter_hdr.c b/src/modules/secfilter/secfilter_hdr.c index a3b52c75b90..2849223eedf 100644 --- a/src/modules/secfilter/secfilter_hdr.c +++ b/src/modules/secfilter/secfilter_hdr.c @@ -164,7 +164,7 @@ int secf_get_to(struct sip_msg *msg, str *name, str *user, str *domain) } -void secf_trim_quotes(str *input) +static void secf_trim_quotes(str *input) { if(!input || input->len < 2 || input->s == NULL) { return; @@ -176,7 +176,7 @@ void secf_trim_quotes(str *input) } } -int parse_name(char *_s, int _len, str *name) +static int parse_name(char *_s, int _len, str *name) { if(_s == NULL || _len <= 0) { if(name) { _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
