fixed compiling with -Wwrite-strings
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxi2c.c
Modified:
trunk/reactos/boot/freeldr/freeldr/include/arch/i386/machxbox.h
_____
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxi2c.c
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxi2c.c
2005-12-10 15:40:52 UTC (rev 20036)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxi2c.c
2005-12-10 15:53:27 UTC (rev 20037)
@@ -196,8 +196,8 @@
// 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) {
_____
Modified:
trunk/reactos/boot/freeldr/freeldr/include/arch/i386/machxbox.h
--- trunk/reactos/boot/freeldr/freeldr/include/arch/i386/machxbox.h
2005-12-10 15:40:52 UTC (rev 20036)
+++ trunk/reactos/boot/freeldr/freeldr/include/arch/i386/machxbox.h
2005-12-10 15:53:27 UTC (rev 20037)
@@ -60,7 +60,7 @@
VOID XboxHwDetect(VOID);
-VOID XboxSetLED(UCHAR *Pattern);
+VOID XboxSetLED(PCSTR Pattern);
#endif /* __I386_HWXBOX_H_ */
Show replies by date