summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/main.c2
-rw-r--r--apps/tagcache.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c
index 915aec2..e7a01c8 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -141,9 +141,9 @@ void init_dircache(void)
void init_tagcache(void)
{
+#ifdef HAVE_LCD_BITMAP
int font_w, font_h;
-#ifdef HAVE_LCD_BITMAP
/* Print "Scanning disk..." to the display. */
lcd_getstringsize("A", &font_w, &font_h);
lcd_putsxy((LCD_WIDTH/2) - ((strlen(str(LANG_TAGCACHE_INIT))*font_w)/2),
diff --git a/apps/tagcache.c b/apps/tagcache.c
index f6a42d0..850eaf9 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -1367,7 +1367,7 @@ static void allocate_tempbuf(void)
{
/* Yeah, malloc would be really nice now :) */
tempbuf = (char *)(((long)audiobuf & ~0x03) + 0x04);
- tempbuf_size = (int)audiobufend - (int)audiobuf - 4;
+ tempbuf_size = (long)audiobufend - (long)audiobuf - 4;
audiobuf += tempbuf_size;
}