summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-01-09 17:42:54 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-01-09 17:42:54 +0000
commitf736159e5c0fe543aac10c5cd44ea1e0ede264ef (patch)
tree5c81ccdd3a44034d08532d5c7ce53cbe39d1bda1 /apps
parent3d53182cef03b7d6581ae972d651f5c64d2448b0 (diff)
downloadrockbox-f736159e5c0fe543aac10c5cd44ea1e0ede264ef.tar.gz
rockbox-f736159e5c0fe543aac10c5cd44ea1e0ede264ef.zip
Make a few global variables static instead of global where possible
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24206 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/mpeg.c12
-rw-r--r--apps/tree.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/mpeg.c b/apps/mpeg.c
index 514379c16c..eb2cc735ba 100644
--- a/apps/mpeg.c
+++ b/apps/mpeg.c
@@ -131,10 +131,10 @@ static struct trackdata trackdata[MAX_TRACK_ENTRIES];
131 131
132static unsigned int current_track_counter = 0; 132static unsigned int current_track_counter = 0;
133 133
134#ifndef SIMULATOR
134/* Play time of the previous track */ 135/* Play time of the previous track */
135unsigned long prev_track_elapsed; 136static unsigned long prev_track_elapsed;
136 137
137#ifndef SIMULATOR
138static int track_read_idx = 0; 138static int track_read_idx = 0;
139static int track_write_idx = 0; 139static int track_write_idx = 0;
140#endif /* !SIMULATOR */ 140#endif /* !SIMULATOR */
@@ -213,10 +213,10 @@ static int prerecord_count; /* Number of seconds in the prerecord buffer */
213static int prerecord_timeout; /* The tick count of the next prerecord data 213static int prerecord_timeout; /* The tick count of the next prerecord data
214 store */ 214 store */
215 215
216unsigned long record_start_time; /* Value of current_tick when recording 216static unsigned long record_start_time; /* Value of current_tick when recording
217 was started */ 217 was started */
218unsigned long pause_start_time; /* Value of current_tick when pause was 218static unsigned long pause_start_time; /* Value of current_tick when pause was
219 started */ 219 started */
220static unsigned long last_rec_time; 220static unsigned long last_rec_time;
221static unsigned long num_rec_bytes; 221static unsigned long num_rec_bytes;
222static unsigned long last_rec_bytes; 222static unsigned long last_rec_bytes;
diff --git a/apps/tree.c b/apps/tree.c
index 5a8445cacf..dda36903e7 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -84,7 +84,7 @@ struct gui_synclist tree_lists;
84/* I put it here because other files doesn't use it yet, 84/* I put it here because other files doesn't use it yet,
85 * but should be elsewhere since it will be used mostly everywhere */ 85 * but should be elsewhere since it will be used mostly everywhere */
86#ifdef HAVE_BUTTONBAR 86#ifdef HAVE_BUTTONBAR
87struct gui_buttonbar tree_buttonbar; 87static struct gui_buttonbar tree_buttonbar;
88#endif 88#endif
89static struct tree_context tc; 89static struct tree_context tc;
90 90