Ver Fonte

cfg_size macro renamed to cfg_sizeof to avoid a conflict with one of the
functions in libconfuse, this library is used by one of the kamailio modules.

Acked by Miklos Tirpak.

Jan Janak há 16 anos atrás
pai
commit
bb5aa5037a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      modules_s/maxfwd/maxfwd.c

+ 1 - 1
modules_s/maxfwd/maxfwd.c

@@ -105,7 +105,7 @@ struct module_exports exports= {
 static int mod_init(void) {
 	DBG(MODULE_NAME": initializing\n");
 	/* declare the configuration */
-	if (cfg_declare(MODULE_NAME, maxfwd_cfg_def, &default_maxfwd_cfg, cfg_size(maxfwd), &maxfwd_cfg)) {
+	if (cfg_declare(MODULE_NAME, maxfwd_cfg_def, &default_maxfwd_cfg, cfg_sizeof(maxfwd), &maxfwd_cfg)) {
 		ERR(MODULE_NAME": mod_init: failed to declare the configuration\n");
 		return E_UNSPEC;
 	}