diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/ais/lck.c | 2 | ||||
-rw-r--r-- | res/res_phoneprov.c | 6 | ||||
-rw-r--r-- | res/res_timing_pthread.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/res/ais/lck.c b/res/ais/lck.c index 7e7533dc6..04252ff8b 100644 --- a/res/ais/lck.c +++ b/res/ais/lck.c @@ -115,7 +115,7 @@ static int lock_cmp_cb(void *obj, void *arg, int flags) { struct lock_resource *lock1 = obj, *lock2 = arg; - return !strcasecmp(lock1->name, lock2->name) ? CMP_MATCH : 0; + return !strcasecmp(lock1->name, lock2->name) ? CMP_MATCH | CMP_STOP : 0; } static int lock_resources_init(void *data) diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c index 3fcc19a19..54c094294 100644 --- a/res/res_phoneprov.c +++ b/res/res_phoneprov.c @@ -249,7 +249,7 @@ static int profile_cmp_fn(void *obj, void *arg, int flags) { const struct phone_profile *profile1 = obj, *profile2 = arg; - return !strcasecmp(profile1->name, profile2->name) ? CMP_MATCH : 0; + return !strcasecmp(profile1->name, profile2->name) ? CMP_MATCH | CMP_STOP : 0; } static void delete_file(struct phoneprov_file *file) @@ -295,7 +295,7 @@ static int routes_cmp_fn(void *obj, void *arg, int flags) { const struct http_route *route1 = obj, *route2 = arg; - return !strcmp(route1->uri, route2->uri) ? CMP_MATCH : 0; + return !strcmp(route1->uri, route2->uri) ? CMP_MATCH | CMP_STOP : 0; } static void route_destructor(void *obj) @@ -784,7 +784,7 @@ static int users_cmp_fn(void *obj, void *arg, int flags) { const struct user *user1 = obj, *user2 = arg; - return !strcasecmp(user1->macaddress, user2->macaddress) ? CMP_MATCH : 0; + return !strcasecmp(user1->macaddress, user2->macaddress) ? CMP_MATCH | CMP_STOP : 0; } /*! \brief Free all memory associated with a user */ diff --git a/res/res_timing_pthread.c b/res/res_timing_pthread.c index 187fd2bfb..6e57246a6 100644 --- a/res/res_timing_pthread.c +++ b/res/res_timing_pthread.c @@ -308,7 +308,7 @@ static int pthread_timer_cmp(void *obj, void *arg, int flags) { struct pthread_timer *timer1 = obj, *timer2 = arg; - return (timer1->pipe[PIPE_READ] == timer2->pipe[PIPE_READ]) ? CMP_MATCH : 0; + return (timer1->pipe[PIPE_READ] == timer2->pipe[PIPE_READ]) ? CMP_MATCH | CMP_STOP : 0; } /*! |