From 8c954e28b75b47543f69abe2c169d83ad38c26ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Sat, 2 Jul 2011 02:49:20 +0000 Subject: [PATCH] sansa AMS bootloader: make strings static git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30118 a1c6a512-1295-4272-9138-f99709370657 --- bootloader/sansa_as3525.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c index 140fa02a76..109d6db919 100644 --- a/bootloader/sansa_as3525.c +++ b/bootloader/sansa_as3525.c @@ -47,7 +47,7 @@ static void usb_mode(void) { if(usb_detect() != USB_INSERTED) { - const char msg[] = "Plug USB cable"; + static const char msg[] = "Plug USB cable"; reset_screen(); lcd_putsxy( (LCD_WIDTH - (SYSFONT_WIDTH * sizeof(msg))) / 2, (LCD_HEIGHT - SYSFONT_HEIGHT) / 2, msg); @@ -57,7 +57,7 @@ static void usb_mode(void) while(usb_detect() != USB_INSERTED) ; } - const char msg[] = "Bootloader USB mode"; + static const char msg[] = "Bootloader USB mode"; reset_screen(); lcd_putsxy( (LCD_WIDTH - (SYSFONT_WIDTH * sizeof(msg))) / 2, (LCD_HEIGHT - SYSFONT_HEIGHT) / 2, msg);