bufmgr: make the _tbm_bufmgr_init 73/170773/3
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 21 Feb 2018 10:53:43 +0000 (19:53 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 22 Feb 2018 07:54:28 +0000 (07:54 +0000)
make the static function for _tbm_bufmgr_init

Change-Id: Ifb187b84587e294404aa8a4cea7913be781f13ea

src/tbm_bufmgr.c

index 2e3d2e2c9d3028f22ebb2e0b1a3a0c7cc46785e6..5f55aefcbeeabe5f11ec19bfc33c4d9cbe317690 100644 (file)
@@ -620,8 +620,8 @@ _tbm_load_module(tbm_bufmgr bufmgr, int fd)
 }
 /* LCOV_EXCL_STOP */
 
-tbm_bufmgr
-tbm_bufmgr_init(int fd)
+static tbm_bufmgr
+_tbm_bufmgr_init(int fd, int server)
 {
 #ifdef TBM_BUFMGR_INIT_TIME
        struct timeval start_tv, end_tv;
@@ -749,6 +749,16 @@ tbm_bufmgr_init(int fd)
        return gBufMgr;
 }
 
+tbm_bufmgr
+tbm_bufmgr_init(int fd)
+{
+       tbm_bufmgr bufmgr;
+
+       bufmgr = _tbm_bufmgr_init(fd, 0);
+
+       return bufmgr;
+}
+
 void
 tbm_bufmgr_deinit(tbm_bufmgr bufmgr)
 {