diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-06-15 11:22:11 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-06-15 11:22:11 +0000 |
commit | 2157035aa98720d36dc6ed8f5be03516b9588811 (patch) | |
tree | 5fb12c18511f213b0793363802266a78fcea3a50 /test/fdmap-1.c | |
parent | 86e5d10649f14fe3b3c8af37fd8ec04cc337fc9e (diff) | |
download | cmogstored-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.c | 4 |
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"); } |