mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fixed minor compile errors in fddir-sortix.c.
This commit is contained in:
parent
e05e934beb
commit
c6682265aa
1 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <sys/readdirents.h>
|
||||
#include <dirent.h>
|
||||
|
@ -100,9 +101,10 @@ int fddir_sortix_fd(void* user)
|
|||
int fddir_sortix_close(void* user)
|
||||
{
|
||||
fddir_sortix_t* info = (fddir_sortix_t*) user;
|
||||
close(info->fd);
|
||||
int result = close(info->fd);
|
||||
free(info->dirent);
|
||||
free(info);
|
||||
return result;
|
||||
}
|
||||
|
||||
DIR* fdopendir(int fd)
|
||||
|
|
Loading…
Reference in a new issue