ia64/xen-unstable

changeset 5650:95685fbba2ca

Replace implicit 16-byte arg to xen_extraversion with an
explicit typedef.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
author kaf24@firebug.cl.cam.ac.uk
date Sun Jul 03 12:39:03 2005 +0000 (2005-07-03)
parents fc4e10d0455a
children f075272620a0
files xen/common/kernel.c xen/include/public/version.h
line diff
     1.1 --- a/xen/common/kernel.c	Sat Jul 02 22:37:55 2005 +0000
     1.2 +++ b/xen/common/kernel.c	Sun Jul 03 12:39:03 2005 +0000
     1.3 @@ -92,7 +92,7 @@ long do_xen_version(int cmd, void *arg)
     1.4  
     1.5      case XENVER_extraversion:
     1.6      {
     1.7 -        char extraversion[16];
     1.8 +        xen_extraversion_t extraversion;
     1.9          safe_strcpy(extraversion, XEN_EXTRAVERSION);
    1.10          if ( copy_to_user(arg, extraversion, sizeof(extraversion)) )
    1.11              return -EFAULT;
     2.1 --- a/xen/include/public/version.h	Sat Jul 02 22:37:55 2005 +0000
     2.2 +++ b/xen/include/public/version.h	Sun Jul 03 12:39:03 2005 +0000
     2.3 @@ -15,10 +15,11 @@
     2.4  /* arg == NULL; returns major:minor (16:16). */
     2.5  #define XENVER_version      0
     2.6  
     2.7 -/* arg == 16-char string buffer. */
     2.8 +/* arg == xen_extraversion_t. */
     2.9  #define XENVER_extraversion 1
    2.10 +typedef char xen_extraversion_t[16];
    2.11  
    2.12 -/* arg == xenversion_compile_info_t. */
    2.13 +/* arg == xen_compile_info_t. */
    2.14  #define XENVER_compile_info 2
    2.15  typedef struct xen_compile_info {
    2.16      char compiler[64];