]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
s/VERIFY_DA/DA_VERIFY/
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 10 Apr 2018 05:46:08 +0000 (11:46 +0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 10 Apr 2018 05:53:36 +0000 (11:53 +0600)
src/include/dict.h
src/lib/util/dict.c

index e563503952763e0a02bd3eb228248cbe0514d991..734039f5d4e7a69123718763c525fdcfee63a9ce 100644 (file)
@@ -185,12 +185,6 @@ typedef struct {
  */
 #define FR_DICT_ATTR_SIZE              (sizeof(fr_dict_attr_t) + FR_DICT_ATTR_MAX_NAME_LEN)
 
-#ifdef WITH_VERIFY_PTR
-#  define VERIFY_DA(_x)                fr_dict_verify(__FILE__,  __LINE__, _x)
-#else
-#  define VERIFY_DA(_x)                fr_cond_assert(_x)
-#endif
-
 /** Characters that are allowed in dictionary attribute names
  *
  */
index 3b399cb987a6533266c3de58ddaa0e7fd99eba38..2209f58407e5c507a6c3671c448ca92a1ff86568 100644 (file)
@@ -1224,7 +1224,7 @@ static fr_dict_attr_t *dict_attr_alloc(TALLOC_CTX *ctx,
        }
 
        dict_attr_init(n, parent, attr, type, flags);
-       VERIFY_DA(n);
+       DA_VERIFY(n);
 
        return n;
 }
@@ -1245,7 +1245,7 @@ static fr_dict_attr_t *dict_attr_acopy(TALLOC_CTX *ctx, fr_dict_attr_t const *in
        if (!n) return NULL;
 
        dict_attr_init(n, in->parent, in->attr, in->type, &in->flags);
-       VERIFY_DA(n);
+       DA_VERIFY(n);
 
        return n;
 }
@@ -1434,7 +1434,7 @@ static inline int dict_attr_child_add(fr_dict_attr_t *parent, fr_dict_attr_t *ch
        child->parent = parent;
        child->depth = parent->depth + 1;
 
-       VERIFY_DA(child);
+       DA_VERIFY(child);
 
        /*
         *      We only allocate the pointer array *if* the parent has children.
@@ -3085,7 +3085,7 @@ fr_dict_attr_t const *fr_dict_vendor_attr_by_da(fr_dict_attr_t const *da)
 {
        fr_dict_attr_t const *da_p = da;
 
-       VERIFY_DA(da);
+       DA_VERIFY(da);
 
        while (da_p->parent) {
                if (da_p->type == FR_TYPE_VENDOR) break;
@@ -3295,7 +3295,7 @@ fr_dict_attr_t const *fr_dict_attr_child_by_da(fr_dict_attr_t const *parent, fr_
 {
        fr_dict_attr_t const *bin;
 
-       VERIFY_DA(parent);
+       DA_VERIFY(parent);
 
        if (!parent->children) return NULL;
 
@@ -3338,7 +3338,7 @@ inline fr_dict_attr_t const *fr_dict_attr_child_by_num(fr_dict_attr_t const *par
 {
        fr_dict_attr_t const *bin;
 
-       VERIFY_DA(parent);
+       DA_VERIFY(parent);
 
        if (!parent->children) return NULL;
 
@@ -3619,7 +3619,7 @@ static int dict_root_set(fr_dict_t *dict, char const *name, unsigned int proto_n
        if (!dict->root) return -1;
 
        dict_attr_init(dict->root, NULL, proto_number, FR_TYPE_TLV, &flags);
-       VERIFY_DA(dict->root);
+       DA_VERIFY(dict->root);
 
        return 0;
 }