summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-08-14 12:44:50 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-08-14 12:44:50 +0000
commitdc1cb3cfbb51d82d3a54c36b2988bb88110afb6c (patch)
treeafd687cc4d9b89e6a26b400313b38c8c8b982f3f
parentadb64bbb9bd2dffaa442c669d74f5b9f652486c8 (diff)
Hopefully green this time (move the variable declarations inside the #if block).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14331 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/properties.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index 9da8ef6139..b2dcc4beca 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -69,8 +69,6 @@ static bool file_properties(char* selected_file)
char tstr[MAX_PATH];
DIR* dir;
struct dirent* entry;
- struct mp3entry id3;
- int fd;
char* ptr = rb->strrchr(selected_file, '/') + 1;
int dirlen = (ptr - selected_file);
@@ -101,7 +99,8 @@ static bool file_properties(char* selected_file)
num_properties = 5;
#if (CONFIG_CODEC == SWCODEC)
- fd = rb->open(selected_file, O_RDONLY);
+ struct mp3entry id3;
+ int fd = rb->open(selected_file, O_RDONLY);
if (fd >= 0)
{
if (rb->get_metadata(&id3, fd, selected_file, false))