summaryrefslogtreecommitdiffstats
path: root/sbin/restore/dirs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/restore/dirs.c')
-rw-r--r--sbin/restore/dirs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/restore/dirs.c b/sbin/restore/dirs.c
index 0d66ba5..327d3ed 100644
--- a/sbin/restore/dirs.c
+++ b/sbin/restore/dirs.c
@@ -489,7 +489,7 @@ rst_readdir(RST_DIR *dirp)
/*
* Simulate the opening of a directory
*/
-RST_DIR *
+void *
rst_opendir(const char *name)
{
struct inotab *itp;
@@ -509,9 +509,11 @@ rst_opendir(const char *name)
* In our case, there is nothing to do when closing a directory.
*/
void
-rst_closedir(RST_DIR *dirp)
+rst_closedir(void *arg)
{
+ RST_DIR *dirp;
+ dirp = arg;
(void)close(dirp->dd_fd);
free(dirp);
return;
OpenPOWER on IntegriCloud