win-pvdrivers

changeset 472:c33db88c95a8

Re-add casts to eliminate compiler warnings
author Steve Meisner <steve.meisner@virtualcomputer.com>
date Mon Dec 01 14:50:18 2008 -0500 (2008-12-01)
parents babd1ef136ac
children 525a6f4ca9a1 bfa5aaaf55e0
files common/include/xen_public.h
line diff
     1.1 --- a/common/include/xen_public.h	Thu Nov 27 21:24:20 2008 +1100
     1.2 +++ b/common/include/xen_public.h	Mon Dec 01 14:50:18 2008 -0500
     1.3 @@ -254,15 +254,15 @@ ADD_XEN_INIT_REQ(PUCHAR *ptr, UCHAR type
     1.4    case XEN_INIT_TYPE_STATE_PTR:
     1.5      break;
     1.6    case XEN_INIT_TYPE_WRITE_STRING:
     1.7 -    __ADD_XEN_INIT_STRING(ptr, p1);
     1.8 -    __ADD_XEN_INIT_STRING(ptr, p2);
     1.9 +    __ADD_XEN_INIT_STRING(ptr, (PCHAR) p1);
    1.10 +    __ADD_XEN_INIT_STRING(ptr, (PCHAR) p2);
    1.11      break;
    1.12    case XEN_INIT_TYPE_RING:
    1.13    case XEN_INIT_TYPE_EVENT_CHANNEL:
    1.14    case XEN_INIT_TYPE_EVENT_CHANNEL_IRQ:
    1.15    case XEN_INIT_TYPE_READ_STRING_FRONT:
    1.16    case XEN_INIT_TYPE_READ_STRING_BACK:
    1.17 -    __ADD_XEN_INIT_STRING(ptr, p1);
    1.18 +    __ADD_XEN_INIT_STRING(ptr, (PCHAR) p1);
    1.19      break;
    1.20    case XEN_INIT_TYPE_GRANT_ENTRIES:
    1.21      __ADD_XEN_INIT_ULONG(ptr, PtrToUlong(p2));
    1.22 @@ -323,18 +323,18 @@ ADD_XEN_INIT_RSP(PUCHAR *ptr, UCHAR type
    1.23    case XEN_INIT_TYPE_RUN:
    1.24      break;
    1.25    case XEN_INIT_TYPE_RING:
    1.26 -    __ADD_XEN_INIT_STRING(ptr, p1);
    1.27 +    __ADD_XEN_INIT_STRING(ptr, (PCHAR) p1);
    1.28      __ADD_XEN_INIT_PTR(ptr, p2);
    1.29      break;
    1.30    case XEN_INIT_TYPE_EVENT_CHANNEL:
    1.31    case XEN_INIT_TYPE_EVENT_CHANNEL_IRQ:
    1.32 -    __ADD_XEN_INIT_STRING(ptr, p1);
    1.33 +    __ADD_XEN_INIT_STRING(ptr, (PCHAR) p1);
    1.34      __ADD_XEN_INIT_ULONG(ptr, PtrToUlong(p2));
    1.35      break;
    1.36    case XEN_INIT_TYPE_READ_STRING_FRONT:
    1.37    case XEN_INIT_TYPE_READ_STRING_BACK:
    1.38 -    __ADD_XEN_INIT_STRING(ptr, p1);
    1.39 -    __ADD_XEN_INIT_STRING(ptr, p2);
    1.40 +    __ADD_XEN_INIT_STRING(ptr, (PCHAR) p1);
    1.41 +    __ADD_XEN_INIT_STRING(ptr, (PCHAR) p2);
    1.42      break;
    1.43    case XEN_INIT_TYPE_VECTORS:
    1.44      //__ADD_XEN_INIT_ULONG(ptr, PtrToUlong(p1));