Explorar o código

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 %!s(int64=16) %!d(string=hai) anos
pai
achega
bb5aa5037a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 	}