summaryrefslogtreecommitdiff
path: root/sftp-glob.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-07-14 12:14:56 +1000
committerDamien Miller <djm@mindrot.org>2001-07-14 12:14:56 +1000
commitea12acf3ac7f060ed17080562e39215be43e5459 (patch)
treec93ea6ec92c5a7c8325b23667b06c9170ab5d925 /sftp-glob.c
parentf3512d9ba7e7ee92493cf394610c2ca047a0f637 (diff)
- OpenBSD CVS Sync
- espie@cvs.openbsd.org 2001/07/05 11:43:33 [sftp-glob.c] Directly cast to the right type. Ok markus@
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}