about summary refs log tree commit homepage
path: root/test/fdmap-1.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-06-15 11:22:11 +0000
committerEric Wong <normalperson@yhbt.net>2013-06-15 11:22:11 +0000
commit2157035aa98720d36dc6ed8f5be03516b9588811 (patch)
tree5fb12c18511f213b0793363802266a78fcea3a50 /test/fdmap-1.c
parent86e5d10649f14fe3b3c8af37fd8ec04cc337fc9e (diff)
downloadcmogstored-2157035aa98720d36dc6ed8f5be03516b9588811.tar.gz
mog_fd_init enforces setting the correct type, so relegate
mog_fd_get to private usage inside fdmap.c
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");
         }