소스 검색

core: set shm xsetfunc api field

- fix wrong variable added in previous commit for pkg api
Daniel-Constantin Mierla 1 년 전
부모
커밋
37aa5b5f88
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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.xreallocxf = ap->xreallocxf;
 	_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.xreport = ap->xreport;
 	_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.xglock = ap->xglock;
 	_shm_root.xgunlock = ap->xgunlock;
+	_shm_root.xsetfunc = ap->xsetfunc;
 	return 0;
 }