Rename xlat_name -> name in rlm_cache
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 16 May 2015 22:25:15 +0000 (18:25 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 16 May 2015 22:25:22 +0000 (18:25 -0400)
src/modules/rlm_cache/drivers/rlm_cache_memcached/rlm_cache_memcached.c
src/modules/rlm_cache/rlm_cache.c
src/modules/rlm_cache/rlm_cache.h

index 15fda85..ffaa15b 100644 (file)
@@ -142,7 +142,7 @@ static int mod_instantiate(CONF_SECTION *conf, rlm_cache_t *inst)
 
        inst->driver = driver;
 
-       snprintf(buffer, sizeof(buffer), "rlm_cache (%s)", inst->xlat_name);
+       snprintf(buffer, sizeof(buffer), "rlm_cache (%s)", inst->name);
 
        driver->pool = fr_connection_pool_module_init(conf, inst, mod_conn_create, NULL, buffer);
        if (!driver->pool) return -1;
index 9757625..54ec5f3 100644 (file)
@@ -679,13 +679,13 @@ static int mod_bootstrap(CONF_SECTION *conf, void *instance)
 
        inst->cs = conf;
 
-       inst->xlat_name = cf_section_name2(conf);
-       if (!inst->xlat_name) inst->xlat_name = cf_section_name1(conf);
+       inst->name = cf_section_name2(conf);
+       if (!inst->name) inst->name = cf_section_name1(conf);
 
        /*
         *      Register the cache xlat function
         */
-       xlat_register(inst->xlat_name, cache_xlat, NULL, inst);
+       xlat_register(inst->name, cache_xlat, NULL, inst);
 
        return 0;
 }
@@ -726,7 +726,7 @@ static int mod_instantiate(CONF_SECTION *conf, void *instance)
                return -1;
        }
 
-       INFO("rlm_cache (%s): Driver %s (module %s) loaded and linked", inst->xlat_name,
+       INFO("rlm_cache (%s): Driver %s (module %s) loaded and linked", inst->name,
             inst->driver_name, inst->module->name);
 
        /*
index 0d828be..a7e0abf 100644 (file)
@@ -47,7 +47,7 @@ typedef enum {
  *     be used as the instance handle.
  */
 typedef struct rlm_cache_t {
-       char const              *xlat_name;             //!< Name of xlat function to register.
+       char const              *name;          //!< Name of xlat function to register.
 
        char const              *driver_name;           //!< Datastore name
        void                    *handle;                //!< Datastore handle.