summaryrefslogtreecommitdiff
path: root/sftp-glob.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp-glob.c')
-rw-r--r--sftp-glob.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sftp-glob.c b/sftp-glob.c
index 18b44f82e..b5be7dede 100644
--- a/sftp-glob.c
+++ b/sftp-glob.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: sftp-glob.c,v 1.6 2001/06/23 15:12:20 itojun Exp $"); 26RCSID("$OpenBSD: sftp-glob.c,v 1.7 2001/07/05 11:43:33 espie Exp $");
27 27
28#include "ssh.h" 28#include "ssh.h"
29#include "buffer.h" 29#include "buffer.h"
@@ -159,9 +159,9 @@ int
159remote_glob(int fd_in, int fd_out, const char *pattern, int flags, 159remote_glob(int fd_in, int fd_out, const char *pattern, int flags,
160 int (*errfunc)(const char *, int), glob_t *pglob) 160 int (*errfunc)(const char *, int), glob_t *pglob)
161{ 161{
162 pglob->gl_opendir = (void*)fudge_opendir; 162 pglob->gl_opendir = fudge_opendir;
163 pglob->gl_readdir = (void*)fudge_readdir; 163 pglob->gl_readdir = (struct dirent *(*)(void *))fudge_readdir;
164 pglob->gl_closedir = (void*)fudge_closedir; 164 pglob->gl_closedir = (void (*)(void *))fudge_closedir;
165 pglob->gl_lstat = fudge_lstat; 165 pglob->gl_lstat = fudge_lstat;
166 pglob->gl_stat = fudge_stat; 166 pglob->gl_stat = fudge_stat;
167 167
@@ -169,6 +169,6 @@ remote_glob(int fd_in, int fd_out, const char *pattern, int flags,
169 cur.fd_in = fd_in; 169 cur.fd_in = fd_in;
170 cur.fd_out = fd_out; 170 cur.fd_out = fd_out;
171 171
172 return(glob(pattern, flags | GLOB_ALTDIRFUNC, (void*)errfunc, 172 return(glob(pattern, flags | GLOB_ALTDIRFUNC, errfunc,
173 pglob)); 173 pglob));
174} 174}