bug-gnulib
[Top][All Lists]
Advanced

[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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]