From 8a7aad995210ce7a66e9be4315693feb7756670a Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 11 Nov 2010 12:30:39 +0000 Subject: * fix type warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'win32/win32.c') 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; -- cgit v1.2.3