1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2012-02-12 12:18:06 +01:00
parent e05e934beb
commit c6682265aa

View file

@ -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)