diff options
Diffstat (limited to 'res/res_phoneprov.c')
-rw-r--r-- | res/res_phoneprov.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c index cd63a265a..5fcb29466 100644 --- a/res/res_phoneprov.c +++ b/res/res_phoneprov.c @@ -236,7 +236,7 @@ static struct phone_profile *find_profile(const char *name) .name = name, }; - return ao2_find(profiles, &tmp, OBJ_POINTER); + return ao2_find(profiles, &tmp, NULL, OBJ_POINTER); } static int profile_hash_fn(const void *obj, const int flags) @@ -246,7 +246,7 @@ static int profile_hash_fn(const void *obj, const int flags) return ast_str_hash(profile->name); } -static int profile_cmp_fn(void *obj, void *arg, int flags) +static int profile_cmp_fn(void *obj, void *arg, void *data, int flags) { const struct phone_profile *profile1 = obj, *profile2 = arg; @@ -299,7 +299,7 @@ static int routes_hash_fn(const void *obj, const int flags) return ast_str_hash(uri); } -static int routes_cmp_fn(void *obj, void *arg, int flags) +static int routes_cmp_fn(void *obj, void *arg, void *data, int flags) { const struct http_route *route1 = obj, *route2 = arg; @@ -419,7 +419,7 @@ static struct ast_str *phoneprov_callback(struct ast_tcptls_session_instance *se struct timeval now = ast_tvnow(); struct ast_tm tm; - if (!(route = ao2_find(http_routes, &search_route, OBJ_POINTER))) { + if (!(route = ao2_find(http_routes, &search_route, NULL, OBJ_POINTER))) { goto out404; } @@ -780,7 +780,7 @@ static struct user *find_user(const char *macaddress) .macaddress = macaddress, }; - return ao2_find(users, &tmp, OBJ_POINTER); + return ao2_find(users, &tmp, NULL, OBJ_POINTER); } static int users_hash_fn(const void *obj, const int flags) @@ -797,7 +797,7 @@ static int users_hash_fn(const void *obj, const int flags) return ast_str_hash(mac); } -static int users_cmp_fn(void *obj, void *arg, int flags) +static int users_cmp_fn(void *obj, void *arg, void *data, int flags) { const struct user *user1 = obj, *user2 = arg; |