[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Replace implicit 16-byte arg to xen_extraversion with an
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |