From 3350303771a259b603d74d654b7cd02e538beb8b Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 11 May 2003 07:44:14 +0000 Subject: [PATCH] - Changed data pointers from signed to unsigned char. svn path=/trunk/; revision=4666 --- reactos/apps/utils/pnpdump/pnpdump.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/reactos/apps/utils/pnpdump/pnpdump.c b/reactos/apps/utils/pnpdump/pnpdump.c index 2b093bd5a52..7c90ab31c74 100644 --- a/reactos/apps/utils/pnpdump/pnpdump.c +++ b/reactos/apps/utils/pnpdump/pnpdump.c @@ -147,7 +147,7 @@ GetPnpKey(PHKEY PnpKey) static VOID -PnpDecodeIrq(char *Ptr) +PnpDecodeIrq(unsigned char *Ptr) { USHORT IrqMask; int i; @@ -171,10 +171,10 @@ PnpDecodeIrq(char *Ptr) static VOID -PnpDecodeDma(char *Ptr) +PnpDecodeDma(unsigned char *Ptr) { - char DmaChannel; - char DmaStatus; + unsigned char DmaChannel; + unsigned char DmaStatus; int i; DmaChannel = *Ptr; @@ -196,7 +196,7 @@ PnpDecodeDma(char *Ptr) static VOID -PnpDecodeIoPort(char *Ptr) +PnpDecodeIoPort(unsigned char *Ptr) { USHORT MinBase; USHORT MaxBase; @@ -224,7 +224,7 @@ PnpDecodeIoPort(char *Ptr) static VOID -PnpDecodeFixedIoPort(char *Ptr) +PnpDecodeFixedIoPort(unsigned char *Ptr) { USHORT IoPort; UCHAR Length; @@ -256,7 +256,7 @@ PnpDecodeFixedIoPort(char *Ptr) static VOID -PnpDecodeMemory16(char *Ptr) +PnpDecodeMemory16(unsigned char *Ptr) { USHORT DescLength; UCHAR Info; @@ -294,7 +294,7 @@ PnpDecodeMemory16(char *Ptr) static VOID -PnpDecodeMemory32(char *Ptr) +PnpDecodeMemory32(unsigned char *Ptr) { USHORT DescLength; UCHAR Info; @@ -348,7 +348,7 @@ PnpDecodeMemory32(char *Ptr) static VOID -PnpDecodeFixedMemory(char *Ptr) +PnpDecodeFixedMemory(unsigned char *Ptr) { USHORT DescLength; UCHAR Info; @@ -383,12 +383,12 @@ PnpDecodeFixedMemory(char *Ptr) void PrintDeviceData (PCM_PNP_BIOS_DEVICE_NODE DeviceNode) { - char PnpId[8]; - char *Ptr; + unsigned char PnpId[8]; + unsigned char *Ptr; unsigned int TagSize; unsigned int TagType; - char Id[4]; + unsigned char Id[4]; printf ("Node: %x Size %hu (0x%hx)\n", DeviceNode->Node, @@ -414,7 +414,7 @@ void PrintDeviceData (PCM_PNP_BIOS_DEVICE_NODE DeviceNode) if (DeviceNode->Size > sizeof(CM_PNP_BIOS_DEVICE_NODE)) { - Ptr = (char *)(DeviceNode + 1); + Ptr = (unsigned char *)(DeviceNode + 1); while (TRUE) { if (*Ptr & 0x80)