From: Gurusamy Sarathy Date: Wed, 24 Mar 1999 01:29:09 +0000 (+0000) Subject: flip release & version in win32_uname() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cf6cacac241244490f8321a49c06199f86c6f325;p=p5sagit%2Fp5-mst-13.2.git flip release & version in win32_uname() p4raw-id: //depot/perl@3135 --- diff --git a/win32/win32.c b/win32/win32.c index a43d108..5d2bdaa 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1158,16 +1158,16 @@ win32_uname(struct utsname *name) break; } - /* version */ - sprintf(name->version, "%d.%d", + /* release */ + sprintf(name->release, "%d.%d", osver.dwMajorVersion, osver.dwMinorVersion); - /* release */ - sprintf(name->release, "Build %d", + /* version */ + sprintf(name->version, "Build %d", osver.dwPlatformId == VER_PLATFORM_WIN32_NT ? osver.dwBuildNumber : (osver.dwBuildNumber & 0xffff)); if (osver.szCSDVersion[0]) { - char *buf = name->release + strlen(name->release); + char *buf = name->version + strlen(name->version); sprintf(buf, " (%s)", osver.szCSDVersion); } }