Module: kamailio Branch: master Commit: cb4cd24b73224ca643fbdf0434d9e394081994d0 URL: https://github.com/kamailio/kamailio/commit/cb4cd24b73224ca643fbdf0434d9e394081994d0
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: GitHub <nore...@github.com> Date: 2017-01-31T12:23:22+01:00 Merge pull request #959 from vance-od/master Update jansson_path.c --- Modified: src/modules/jansson/jansson_path.c --- Diff: https://github.com/kamailio/kamailio/commit/cb4cd24b73224ca643fbdf0434d9e394081994d0.diff Patch: https://github.com/kamailio/kamailio/commit/cb4cd24b73224ca643fbdf0434d9e394081994d0.patch --- diff --git a/src/modules/jansson/jansson_path.c b/src/modules/jansson/jansson_path.c index 095146c..b6f76bc 100644 --- a/src/modules/jansson/jansson_path.c +++ b/src/modules/jansson/jansson_path.c @@ -18,9 +18,9 @@ #include "../../core/mod_fix.h" /* jansson private helper functions */ -void *jsonp_malloc(size_t size); -void jsonp_free(void *ptr); -char *jsonp_strdup(const char *str); +static void *jsonp_malloc(size_t size); +static void jsonp_free(void *ptr); +static char *jsonp_strdup(const char *str); static json_malloc_t do_malloc = malloc; static json_free_t do_free = free; @@ -252,21 +252,21 @@ int json_path_set(json_t *json, const char *path, json_t *value, } /* jansson private helper functions */ -void *jsonp_malloc(size_t size) { +static void *jsonp_malloc(size_t size) { if(!size) return NULL; return (*do_malloc)(size); } -void jsonp_free(void *ptr) { +static void jsonp_free(void *ptr) { if(!ptr) return; (*do_free)(ptr); } -char *jsonp_strdup(const char *str) { +static char *jsonp_strdup(const char *str) { char *new_str; new_str = jsonp_malloc(strlen(str) + 1); _______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev