diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-05-24 16:24:26 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-05-24 16:24:26 +0000 |
commit | 5857c0ba2aca54349d8d4f44c70397b575a20bd9 (patch) | |
tree | f9361071f649486455d38ecf30af313aa65fe715 /sbin/restore/dirs.c | |
parent | 2edc0418f935918c8454937b6fa4e05156aa5c3f (diff) | |
download | FreeBSD-src-5857c0ba2aca54349d8d4f44c70397b575a20bd9.zip FreeBSD-src-5857c0ba2aca54349d8d4f44c70397b575a20bd9.tar.gz |
Use the correct types for the functions rst_opendir(), glob_readdir() and
rst_closedir() which are called by glob().
Reviewed by: md5
Approved by: das (mentor)
Diffstat (limited to 'sbin/restore/dirs.c')
-rw-r--r-- | sbin/restore/dirs.c | 6 |
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; |