فهرست منبع

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 سال پیش
والد
کامیت
bb5aa5037a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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;
 	}