diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-11 12:30:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-11 12:30:39 +0000 |
commit | 8a7aad995210ce7a66e9be4315693feb7756670a (patch) | |
tree | db5cbd6b650d594bb2b1d449f8742dbc358d9f3e /win32/win32.c | |
parent | a5eb40b99935a5d1bc29e2c086d00883d6b98858 (diff) |
* fix type warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c index 5f5a55080a..e14ab492e8 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -3819,8 +3819,6 @@ wlink(const WCHAR *from, const WCHAR *to) static int myerrno = 0; if (!pCreateHardLinkW && !myerrno) { - HANDLE hKernel; - pCreateHardLinkW = (BOOL (WINAPI *)(LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES))get_proc_address("kernel32", "CreateHardLinkW", NULL); if (!pCreateHardLinkW) myerrno = ENOSYS; @@ -4936,7 +4934,7 @@ rb_w32_pipe(int fds[2]) return _pipe(fds, 65536L, _O_NOINHERIT); p = strchr(name, '0'); - snprintf(p, strlen(p) + 1, "%x-%lx", rb_w32_getpid(), serial++); + snprintf(p, strlen(p) + 1, "%"PRI_PIDT_PREFIX"x-%lx", rb_w32_getpid(), serial++); sec.nLength = sizeof(sec); sec.lpSecurityDescriptor = NULL; |