summaryrefslogtreecommitdiffstats
path: root/sftp-glob.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-07-14 04:14:56 +0200
committerDamien Miller <djm@mindrot.org>2001-07-14 04:14:56 +0200
commitea12acf3ac7f060ed17080562e39215be43e5459 (patch)
treec93ea6ec92c5a7c8325b23667b06c9170ab5d925 /sftp-glob.c
parent - OpenBSD CVS Sync (diff)
downloadopenssh-ea12acf3ac7f060ed17080562e39215be43e5459.tar.xz
openssh-ea12acf3ac7f060ed17080562e39215be43e5459.zip
- 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 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sftp-glob.c,v 1.6 2001/06/23 15:12:20 itojun Exp $");
+RCSID("$OpenBSD: sftp-glob.c,v 1.7 2001/07/05 11:43:33 espie Exp $");
#include "ssh.h"
#include "buffer.h"
@@ -159,9 +159,9 @@ int
remote_glob(int fd_in, int fd_out, const char *pattern, int flags,
int (*errfunc)(const char *, int), glob_t *pglob)
{
- pglob->gl_opendir = (void*)fudge_opendir;
- pglob->gl_readdir = (void*)fudge_readdir;
- pglob->gl_closedir = (void*)fudge_closedir;
+ pglob->gl_opendir = fudge_opendir;
+ pglob->gl_readdir = (struct dirent *(*)(void *))fudge_readdir;
+ pglob->gl_closedir = (void (*)(void *))fudge_closedir;
pglob->gl_lstat = fudge_lstat;
pglob->gl_stat = fudge_stat;
@@ -169,6 +169,6 @@ remote_glob(int fd_in, int fd_out, const char *pattern, int flags,
cur.fd_in = fd_in;
cur.fd_out = fd_out;
- return(glob(pattern, flags | GLOB_ALTDIRFUNC, (void*)errfunc,
+ return(glob(pattern, flags | GLOB_ALTDIRFUNC, errfunc,
pglob));
}