@@ -77,7 +77,7 @@ typedef struct _cfg_def {
int cfg_declare(char *group_name, cfg_def_t *def, void *values, int def_size,
void **handler);
-#define cfg_size(gname) \
+#define cfg_sizeof(gname) \
sizeof(struct cfg_group_##gname)
#define cfg_get(gname, handle, var) \
@@ -147,7 +147,7 @@ Each row consists of the following items:
static int mod_init(void)
{
- if (cfg_declare("foo", cfg_def, &default_cfg, cfg_size(foo),
+ if (cfg_declare("foo", cfg_def, &default_cfg, cfg_sizeof(foo),
&cfg_handle)
) {
/* error */
@@ -1988,7 +1988,7 @@ try_again:
goto error;
}
/* declare the core cfg before the module configs */
- if (cfg_declare("core", core_cfg_def, &default_core_cfg, cfg_size(core),
+ if (cfg_declare("core", core_cfg_def, &default_core_cfg, cfg_sizeof(core),
&core_cfg)
LOG(L_CRIT, "could not declare the core configuration\n");
@@ -707,7 +707,7 @@ static int mod_init(void)
#endif
/* declare the configuration */
- if (cfg_declare("tm", tm_cfg_def, &default_tm_cfg, cfg_size(tm),
+ if (cfg_declare("tm", tm_cfg_def, &default_tm_cfg, cfg_sizeof(tm),
&tm_cfg)) {
LOG(L_ERR, "ERROR: mod_init: failed to declare the configuration\n");
return -1;