* win32/win32.c (CreateChild, overlapped_socket_io): suppress

warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-07-28 07:49:56 +00:00
parent 009db87ce2
commit d2f72cca6e
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Mon Jul 28 16:49:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/win32.c (CreateChild, overlapped_socket_io): suppress
warnings.
Mon Jul 28 16:06:36 2008 NAKAMURA Usaku <usa@ruby-lang.org> Mon Jul 28 16:06:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (MAXPATHLEN): define before use. * win32/win32.c (MAXPATHLEN): define before use.

View File

@ -1021,7 +1021,7 @@ CreateChild(const char *cmd, const char *prog, SECURITY_ATTRIBUTES *psa,
prog = cmd; prog = cmd;
for (;;) { for (;;) {
if (!*prog) { if (!*prog) {
p = dln_find_exe(cmd, NULL); p = dln_find_exe_r(cmd, NULL, fbuf, sizeof(fbuf));
break; break;
} }
if (strchr(".:*?\"/\\", *prog)) { if (strchr(".:*?\"/\\", *prog)) {
@ -1038,7 +1038,7 @@ CreateChild(const char *cmd, const char *prog, SECURITY_ATTRIBUTES *psa,
p = ALLOCA_N(char, len + 1); p = ALLOCA_N(char, len + 1);
memcpy(p, cmd, len); memcpy(p, cmd, len);
p[len] = 0; p[len] = 0;
p = dln_find_exe(p, NULL); p = dln_find_exe_r(p, NULL, fbuf, sizeof(fbuf));
break; break;
} }
prog++; prog++;
@ -2432,7 +2432,7 @@ overlapped_socket_io(BOOL input, int fd, char *buf, int len, int flags,
int r; int r;
int ret; int ret;
int mode; int mode;
int flg; DWORD flg;
WSAOVERLAPPED wol; WSAOVERLAPPED wol;
WSABUF wbuf; WSABUF wbuf;
int err; int err;