Rename vpt_types to tmpl_types
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 10 Oct 2014 02:12:33 +0000 (22:12 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 10 Oct 2014 02:12:59 +0000 (22:12 -0400)
src/include/tmpl.h
src/main/valuepair.c
src/modules/rlm_cache/rlm_cache.c
src/modules/rlm_ldap/attrmap.c

index f34f7d1..34ddc5f 100644 (file)
@@ -81,7 +81,7 @@ typedef enum tmpl_type {
        TMPL_TYPE_NULL                  //!< VPT has no value
 } tmpl_type_t;
 
-extern const FR_NAME_NUMBER vpt_types[];
+extern const FR_NAME_NUMBER tmpl_types[];
 
 typedef struct xlat_exp xlat_exp_t;
 
index 7320e8f..7c9526d 100644 (file)
@@ -34,7 +34,7 @@ RCSID("$Id$")
 #include <freeradius-devel/radiusd.h>
 #include <freeradius-devel/rad_assert.h>
 
-const FR_NAME_NUMBER vpt_types[] = {
+const FR_NAME_NUMBER tmpl_types[] = {
        {"unknown",             TMPL_TYPE_UNKNOWN },
        {"literal",             TMPL_TYPE_LITERAL },
        {"expanded",            TMPL_TYPE_XLAT },
index 8e27d90..0e4114d 100644 (file)
@@ -518,7 +518,7 @@ static int cache_verify(rlm_cache_t *inst, value_pair_map_t **head)
                                           "allowed for %s values",
                                           fr_int2str(fr_tokens, map->op,
                                                      "<INVALID>"),
-                                          fr_int2str(vpt_types, map->rhs->type,
+                                          fr_int2str(tmpl_types, map->rhs->type,
                                                      "<INVALID>"));
                                return -1;
                        }
index 62ad2d3..fb0dcf8 100644 (file)
@@ -215,7 +215,7 @@ int rlm_ldap_map_verify(ldap_instance_t *inst, value_pair_map_t **head)
                        default:
                                cf_log_err(map->ci, "Operator \"%s\" not allowed for %s values",
                                           fr_int2str(fr_tokens, map->op, "<INVALID>"),
-                                          fr_int2str(vpt_types, map->rhs->type, "<INVALID>"));
+                                          fr_int2str(tmpl_types, map->rhs->type, "<INVALID>"));
                                return -1;
                        }
                default: