about summary refs log tree commit homepage
path: root/test/fdmap-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/fdmap-1.c')
-rw-r--r--test/fdmap-1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fdmap-1.c b/test/fdmap-1.c
index de30545..d4176f0 100644
--- a/test/fdmap-1.c
+++ b/test/fdmap-1.c
@@ -10,7 +10,7 @@ int main(void)
         int open_max = (int)sysconf(_SC_OPEN_MAX);
         int i;
 
-        mfd = mog_fd_get(0);
+        mfd = mog_fd_init(0, MOG_FD_TYPE_UNUSED);
         {
                 struct mog_mgmt *mgmt = &mfd->as.mgmt;
 
@@ -18,7 +18,7 @@ int main(void)
         }
 
         for (i = 0; i < open_max; i++) {
-                mfd = mog_fd_get(i);
+                mfd = mog_fd_init(i, MOG_FD_TYPE_UNUSED);
                 assert(mfd && "mfd unset");
         }