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 18b44f82..b5be7ded 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));
}