Forráskód Böngészése

core: set shm xsetfunc api field

- fix wrong variable added in previous commit for pkg api
Daniel-Constantin Mierla 1 éve
szülő
commit
37aa5b5f88
2 módosított fájl, 2 hozzáadás és 1 törlés
  1. 1 1
      src/core/mem/pkg.c
  2. 1 0
      src/core/mem/shm.c

+ 1 - 1
src/core/mem/pkg.c

@@ -51,7 +51,7 @@ int pkg_init_api(sr_pkg_api_t *ap)
 	_pkg_root.xrealloc = ap->xrealloc;
 	_pkg_root.xrealloc = ap->xrealloc;
 	_pkg_root.xreallocxf = ap->xreallocxf;
 	_pkg_root.xreallocxf = ap->xreallocxf;
 	_pkg_root.xstatus = ap->xstatus;
 	_pkg_root.xstatus = ap->xstatus;
-	_shm_root.xstatus_filter = ap->xstatus_filter;
+	_pkg_root.xstatus_filter = ap->xstatus_filter;
 	_pkg_root.xinfo = ap->xinfo;
 	_pkg_root.xinfo = ap->xinfo;
 	_pkg_root.xreport = ap->xreport;
 	_pkg_root.xreport = ap->xreport;
 	_pkg_root.xavailable = ap->xavailable;
 	_pkg_root.xavailable = ap->xavailable;

+ 1 - 0
src/core/mem/shm.c

@@ -252,6 +252,7 @@ int shm_init_api(sr_shm_api_t *ap)
 	_shm_root.xfmodstats = ap->xfmodstats;
 	_shm_root.xfmodstats = ap->xfmodstats;
 	_shm_root.xglock = ap->xglock;
 	_shm_root.xglock = ap->xglock;
 	_shm_root.xgunlock = ap->xgunlock;
 	_shm_root.xgunlock = ap->xgunlock;
+	_shm_root.xsetfunc = ap->xsetfunc;
 	return 0;
 	return 0;
 }
 }