From 1c08d2c447b021d7e1dee7b9cd104d9b89f727f9 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sat, 10 Dec 2005 15:53:27 +0000 Subject: [PATCH] fixed compiling with -Wwrite-strings svn path=/trunk/; revision=20037 --- reactos/boot/freeldr/freeldr/arch/i386/xboxi2c.c | 4 ++-- reactos/boot/freeldr/freeldr/include/arch/i386/machxbox.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/boot/freeldr/freeldr/arch/i386/xboxi2c.c b/reactos/boot/freeldr/freeldr/arch/i386/xboxi2c.c index 02d0458fa59..a8e17cc1cfa 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/xboxi2c.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/xboxi2c.c @@ -196,8 +196,8 @@ I2cSetFrontpanelLed(UCHAR b) // r = Red, g = Green, o = Orange, x = Off // This func is taken from cromwell, all credits goes for them void -XboxSetLED(UCHAR *pattern) { - char *x = pattern; +XboxSetLED(PCSTR pattern) { + const char *x = pattern; int r, g; if(strlen(pattern) == 4) { diff --git a/reactos/boot/freeldr/freeldr/include/arch/i386/machxbox.h b/reactos/boot/freeldr/freeldr/include/arch/i386/machxbox.h index e3c6817d042..fef0ca58080 100644 --- a/reactos/boot/freeldr/freeldr/include/arch/i386/machxbox.h +++ b/reactos/boot/freeldr/freeldr/include/arch/i386/machxbox.h @@ -60,7 +60,7 @@ VOID XboxRTCGetCurrentDateTime(PULONG Year, PULONG Month, PULONG Day, PULONG Hou VOID XboxHwDetect(VOID); -VOID XboxSetLED(UCHAR *Pattern); +VOID XboxSetLED(PCSTR Pattern); #endif /* __I386_HWXBOX_H_ */