[Asterisk-code-review] res sorcery memory cache.c: Made use OBJ SEARCH MASK. (asterisk[certified/13.1])
Richard Mudgett
asteriskteam at digium.com
Thu Oct 1 17:32:20 CDT 2015
Richard Mudgett has uploaded a new change for review.
https://gerrit.asterisk.org/1361
Change subject: res_sorcery_memory_cache.c: Made use OBJ_SEARCH_MASK.
......................................................................
res_sorcery_memory_cache.c: Made use OBJ_SEARCH_MASK.
Change-Id: Ibca6574dc3c213b29cc93486e01ccd51f5caa46c
---
M res/res_sorcery_memory_cache.c
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/61/1361/1
diff --git a/res/res_sorcery_memory_cache.c b/res/res_sorcery_memory_cache.c
index f0fc055..9caf1f8 100644
--- a/res/res_sorcery_memory_cache.c
+++ b/res/res_sorcery_memory_cache.c
@@ -241,7 +241,7 @@
const char *name = obj;
int hash;
- switch (flags & (OBJ_SEARCH_OBJECT | OBJ_SEARCH_KEY | OBJ_SEARCH_PARTIAL_KEY)) {
+ switch (flags & OBJ_SEARCH_MASK) {
default:
case OBJ_SEARCH_OBJECT:
name = cache->name;
@@ -276,7 +276,7 @@
const char *right_name = arg;
int cmp;
- switch (flags & (OBJ_SEARCH_OBJECT | OBJ_SEARCH_KEY | OBJ_SEARCH_PARTIAL_KEY)) {
+ switch (flags & OBJ_SEARCH_MASK) {
default:
case OBJ_SEARCH_OBJECT:
right_name = right->name;
@@ -306,7 +306,7 @@
const char *name = obj;
int hash;
- switch (flags & (OBJ_SEARCH_OBJECT | OBJ_SEARCH_KEY | OBJ_SEARCH_PARTIAL_KEY)) {
+ switch (flags & OBJ_SEARCH_MASK) {
default:
case OBJ_SEARCH_OBJECT:
name = ast_sorcery_object_get_id(cached->object);
@@ -341,7 +341,7 @@
const char *right_name = arg;
int cmp;
- switch (flags & (OBJ_SEARCH_OBJECT | OBJ_SEARCH_KEY | OBJ_SEARCH_PARTIAL_KEY)) {
+ switch (flags & OBJ_SEARCH_MASK) {
default:
case OBJ_SEARCH_OBJECT:
right_name = ast_sorcery_object_get_id(right->object);
--
To view, visit https://gerrit.asterisk.org/1361
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibca6574dc3c213b29cc93486e01ccd51f5caa46c
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: certified/13.1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
More information about the asterisk-code-review
mailing list