summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/peakmeter.c6
-rw-r--r--apps/recorder/recording.c2
-rw-r--r--apps/recorder/wormlet.c2
-rw-r--r--apps/status.c12
-rw-r--r--apps/status.h1
-rw-r--r--apps/tree.c4
6 files changed, 14 insertions, 13 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index 2e787ba982..a49a46a04b 100644
--- a/apps/recorder/peakmeter.c
+++ b/apps/recorder/peakmeter.c
@@ -49,9 +49,9 @@ static long peak_meter_clip_timeout_r;
49static int peak_meter_clip_hold; 49static int peak_meter_clip_hold;
50 50
51/* specifies the value range in peak volume values */ 51/* specifies the value range in peak volume values */
52unsigned short peak_meter_range_min; 52static unsigned short peak_meter_range_min;
53unsigned short peak_meter_range_max; 53static unsigned short peak_meter_range_max;
54unsigned short peak_meter_range; 54static unsigned short peak_meter_range;
55 55
56/* if set to true clip timeout is disabled */ 56/* if set to true clip timeout is disabled */
57static bool peak_meter_clip_eternal = false; 57static bool peak_meter_clip_eternal = false;
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 3926382daa..22c8da2a33 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -104,7 +104,7 @@ char *fmt_gain(int snd, int val, char *str, int len)
104 return str; 104 return str;
105} 105}
106 106
107int cursor; 107static int cursor;
108 108
109void adjust_cursor(void) 109void adjust_cursor(void)
110{ 110{
diff --git a/apps/recorder/wormlet.c b/apps/recorder/wormlet.c
index f1654227ff..d6850dc039 100644
--- a/apps/recorder/wormlet.c
+++ b/apps/recorder/wormlet.c
@@ -64,7 +64,7 @@
64/** 64/**
65 * All the properties that a worm has. 65 * All the properties that a worm has.
66 */ 66 */
67struct worm { 67static struct worm {
68 /* The worm is stored in a ring of xy coordinates */ 68 /* The worm is stored in a ring of xy coordinates */
69 char x[MAX_WORM_SEGMENTS]; 69 char x[MAX_WORM_SEGMENTS];
70 char y[MAX_WORM_SEGMENTS]; 70 char y[MAX_WORM_SEGMENTS];
diff --git a/apps/status.c b/apps/status.c
index 20e672d8dc..91379bba2b 100644
--- a/apps/status.c
+++ b/apps/status.c
@@ -35,11 +35,13 @@
35 35
36static enum playmode current_mode = STATUS_STOP; 36static enum playmode current_mode = STATUS_STOP;
37 37
38long switch_tick; 38#if defined(HAVE_LCD_CHARCELLS) || defined(HAVE_CHARGE_CTRL)
39int battery_charge_step = 0; 39static long switch_tick;
40#ifdef HAVE_LCD_BITMAP 40static int battery_charge_step = 0;
41bool plug_state; 41#ifdef HAVE_CHARGE_CTRL
42bool battery_state; 42static bool plug_state;
43static bool battery_state;
44#endif
43#endif 45#endif
44 46
45void status_init(void) 47void status_init(void)
diff --git a/apps/status.h b/apps/status.h
index 74118f303b..8d0a492bf2 100644
--- a/apps/status.h
+++ b/apps/status.h
@@ -33,7 +33,6 @@ enum playmode
33void status_init(void); 33void status_init(void);
34void status_set_playmode(enum playmode mode); 34void status_set_playmode(enum playmode mode);
35#ifdef HAVE_LCD_BITMAP 35#ifdef HAVE_LCD_BITMAP
36extern bool statusbar_enabled;
37bool statusbar(bool state); 36bool statusbar(bool state);
38#endif 37#endif
39void status_draw(void); 38void status_draw(void);
diff --git a/apps/tree.c b/apps/tree.c
index 22cda58897..03de011255 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -56,8 +56,8 @@
56 56
57#define NAME_BUFFER_SIZE (AVERAGE_FILENAME_LENGTH * MAX_FILES_IN_DIR) 57#define NAME_BUFFER_SIZE (AVERAGE_FILENAME_LENGTH * MAX_FILES_IN_DIR)
58 58
59char name_buffer[NAME_BUFFER_SIZE]; 59static char name_buffer[NAME_BUFFER_SIZE];
60int name_buffer_length; 60static int name_buffer_length;
61struct entry { 61struct entry {
62 short attr; /* FAT attributes + file type flags */ 62 short attr; /* FAT attributes + file type flags */
63 char *name; 63 char *name;