diff options
Diffstat (limited to 'test/chunk-parser-1.c')
-rw-r--r-- | test/chunk-parser-1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/chunk-parser-1.c b/test/chunk-parser-1.c index 335a39b..d9d2b5d 100644 --- a/test/chunk-parser-1.c +++ b/test/chunk-parser-1.c @@ -29,8 +29,7 @@ static void buf_set(const char *s) assert(tmpfp != NULL && "tmpfile(3) failed"); tmpfd = fileno(tmpfp); assert(tmpfd >= 0 && "invalid fd"); - http->forward = mog_fd_get(tmpfd); - http->forward->fd = tmpfd; + http->forward = mog_fd_init(tmpfd, MOG_FD_TYPE_FILE); file = &http->forward->as.file; file->foff = 0; buf = xstrdup(s); |