diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-12 09:16:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-12 09:16:15 +0000 |
commit | d1abc53721a15bd545b60c875b05f28dd7e01e57 (patch) | |
tree | 44da5708baceb68988497901e3915fbcece7c02d /dln.c | |
parent | 080525aa68c68df1fd4c1484bea1de88e3c1f79f (diff) |
* array.c, bignum.c, dln.c, error.c, gc.c, io.c, marshal.c,
numeric.c, pack.c, strftime.c, string.c, thread.c, transcode.c,
transcode_data.h, util.c, variable.c, vm_dump.c,
include/ruby/encoding.h, missing/crypt.c, missing/vsnprintf.c:
suppress VC type warnings. [ruby-core:22726]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r-- | dln.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1475,7 +1475,7 @@ dln_load(const char *file) return 0; /* dummy return */ } -static char *dln_find_1(const char *fname, const char *path, char *buf, int size, int exe_flag); +static char *dln_find_1(const char *fname, const char *path, char *buf, size_t size, int exe_flag); char * dln_find_exe_r(const char *fname, const char *path, char *buf, int size) @@ -1516,14 +1516,14 @@ dln_find_file(const char *fname, const char *path) } static char * -dln_find_1(const char *fname, const char *path, char *fbuf, int size, +dln_find_1(const char *fname, const char *path, char *fbuf, size_t size, int exe_flag /* non 0 if looking for executable. */) { register const char *dp; register const char *ep; register char *bp; struct stat st; - int i, fspace; + size_t i, fspace; #ifdef DOSISH int is_abs = 0, has_path = 0, has_ext = 0; const char *p = fname; |