[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multiple target patterns
From: |
Paolo Bonzini |
Subject: |
Re: multiple target patterns |
Date: |
Thu, 01 Oct 2009 09:30:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3 |
/cygdrive/c/sds/dev/current/modules/syscalls/gllib/uname.c:158: warning:
passing arg 2 of `strcpy' from incompatible pointer type
Try this:
diff --git a/lib/uname.c b/lib/uname.c
index 1eec7e2..58bb479 100644
--- a/lib/uname.c
+++ b/lib/uname.c
@@ -34,7 +34,7 @@
int
uname (struct utsname *buf)
{
- OSVERSIONINFO version;
+ OSVERSIONINFOA version;
BOOL have_version;
const char *super_version;
@@ -44,7 +44,7 @@ uname (struct utsname *buf)
/* Determine major-major Windows version. */
version.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
- have_version = GetVersionEx (&version);
+ have_version = GetVersionExA (&version);
if (have_version)
{
if (version.dwPlatformId == VER_PLATFORM_WIN32_NT)
- Re: multiple target patterns,
Paolo Bonzini <=
- [PATCH 1/5] win32: Use ANSI functions, Paolo Bonzini, 2009/10/01
- [PATCH 2/5] uname: use only one OSVERSIONINFOEXA struct, use ANSI version, Paolo Bonzini, 2009/10/01
- [PATCH 3/5] Assume GetVersionEx info is available, try to use only one call., Paolo Bonzini, 2009/10/01
- [PATCH 4/5] Handle Windows CE and rewrite NT version handling., Paolo Bonzini, 2009/10/01
- [PATCH 5/5] uname: Put platform-dependent checks one after another., Paolo Bonzini, 2009/10/01
- Re: [PATCH 5/5] uname: Put platform-dependent checks one after another., Bruno Haible, 2009/10/01
- Re: [PATCH 4/5] Handle Windows CE and rewrite NT version handling., Bruno Haible, 2009/10/01
- Re: [PATCH 4/5] Handle Windows CE and rewrite NT version handling., Paolo Bonzini, 2009/10/01
- Re: [PATCH 4/5] Handle Windows CE and rewrite NT version handling., Bruno Haible, 2009/10/01
- Re: [PATCH 4/5] Handle Windows CE and rewrite NT version handling., Paolo Bonzini, 2009/10/01