From c85ab121ff4259be4620c8521d082346dd24d95f Mon Sep 17 00:00:00 2001 From: eban Date: Sun, 28 Apr 2002 09:15:02 +0000 Subject: * win32/win32.c (insert): fix prototype for ANSI C. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'win32/win32.c') diff --git a/win32/win32.c b/win32/win32.c index d5717d6683..5d1c451398 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -727,9 +727,10 @@ typedef struct { } ListInfo; static void -insert(char *path, ListInfo *listinfo) +insert(const char *path, VALUE vinfo) { NtCmdLineElement *tmpcurr; + ListInfo *listinfo = (ListInfo *)vinfo; tmpcurr = ALLOC(NtCmdLineElement); MEMZERO(tmpcurr, NtCmdLineElement, 1); @@ -770,7 +771,7 @@ NtCmdGlob (NtCmdLineElement *patt) for (p = buf; *p; p = CharNext(p)) if (*p == '\\') *p = '/'; - rb_globi(buf, (void (*) _((const char*, VALUE)))insert, (VALUE)&listinfo); + rb_globi(buf, insert, (VALUE)&listinfo); if (buf != buffer) free(buf); -- cgit v1.2.3