diff options
| author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-28 09:15:02 +0000 |
|---|---|---|
| committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-28 09:15:02 +0000 |
| commit | 741abad51aa3597a7f03a02933903da6f8cd46e7 (patch) | |
| tree | 8b964db0a96bcffbd44b579eb741d90e36537fbc /win32 | |
| parent | fa2a14bd29a7c36676c539dedcd80c669224ce09 (diff) | |
| download | ruby-741abad51aa3597a7f03a02933903da6f8cd46e7.tar.gz ruby-741abad51aa3597a7f03a02933903da6f8cd46e7.tar.xz ruby-741abad51aa3597a7f03a02933903da6f8cd46e7.zip | |
* win32/win32.c (insert): fix prototype for ANSI C.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/win32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c index d5717d668..5d1c45139 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); |
