summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-28 07:49:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-28 07:49:56 +0000
commitd2f72cca6e5d31236408c1eb0a3df90adbb9b940 (patch)
tree7d70d822974108c56b4a9a7edb7c1ab042d931f0 /win32
parent009db87ce270709bd1873eda085586d7ae7b573b (diff)
* 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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c
index dba0c71ce2..942f015131 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1021,7 +1021,7 @@ CreateChild(const char *cmd, const char *prog, SECURITY_ATTRIBUTES *psa,
prog = cmd;
for (;;) {
if (!*prog) {
- p = dln_find_exe(cmd, NULL);
+ p = dln_find_exe_r(cmd, NULL, fbuf, sizeof(fbuf));
break;
}
if (strchr(".:*?\"/\\", *prog)) {
@@ -1038,7 +1038,7 @@ CreateChild(const char *cmd, const char *prog, SECURITY_ATTRIBUTES *psa,
p = ALLOCA_N(char, len + 1);
memcpy(p, cmd, len);
p[len] = 0;
- p = dln_find_exe(p, NULL);
+ p = dln_find_exe_r(p, NULL, fbuf, sizeof(fbuf));
break;
}
prog++;
@@ -2432,7 +2432,7 @@ overlapped_socket_io(BOOL input, int fd, char *buf, int len, int flags,
int r;
int ret;
int mode;
- int flg;
+ DWORD flg;
WSAOVERLAPPED wol;
WSABUF wbuf;
int err;