WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Replace implicit 16-byte arg to xen_extraversion with an

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Replace implicit 16-byte arg to xen_extraversion with an
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 03 Jul 2005 08:40:09 -0400
Delivery-date: Sun, 03 Jul 2005 12:40:32 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 95685fbba2cae4ea234baa5a218bdaa84de25130
# Parent  fc4e10d0455a83c57d6667dda4442198322f5e67

Replace implicit 16-byte arg to xen_extraversion with an
explicit typedef.
Signed-off-by: Nguyen Anh Quynh <aquynh@xxxxxxxxx>

diff -r fc4e10d0455a -r 95685fbba2ca xen/common/kernel.c
--- a/xen/common/kernel.c       Sat Jul  2 22:37:55 2005
+++ b/xen/common/kernel.c       Sun Jul  3 12:39:03 2005
@@ -92,7 +92,7 @@
 
     case XENVER_extraversion:
     {
-        char extraversion[16];
+        xen_extraversion_t extraversion;
         safe_strcpy(extraversion, XEN_EXTRAVERSION);
         if ( copy_to_user(arg, extraversion, sizeof(extraversion)) )
             return -EFAULT;
diff -r fc4e10d0455a -r 95685fbba2ca xen/include/public/version.h
--- a/xen/include/public/version.h      Sat Jul  2 22:37:55 2005
+++ b/xen/include/public/version.h      Sun Jul  3 12:39:03 2005
@@ -15,10 +15,11 @@
 /* arg == NULL; returns major:minor (16:16). */
 #define XENVER_version      0
 
-/* arg == 16-char string buffer. */
+/* arg == xen_extraversion_t. */
 #define XENVER_extraversion 1
+typedef char xen_extraversion_t[16];
 
-/* arg == xenversion_compile_info_t. */
+/* arg == xen_compile_info_t. */
 #define XENVER_compile_info 2
 typedef struct xen_compile_info {
     char compiler[64];

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Replace implicit 16-byte arg to xen_extraversion with an, Xen patchbot -unstable <=