Selaa lähdekoodia

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 16 vuotta sitten
vanhempi
commit
bb5aa5037a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;
 	}