diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/core_alloc.c | 2 | ||||
-rw-r--r-- | firmware/drivers/ramdisk.c | 4 | ||||
-rw-r--r-- | firmware/logf.c | 2 | ||||
-rw-r--r-- | firmware/powermgmt.c | 2 | ||||
-rw-r--r-- | firmware/target/hosted/filesystem-app.c | 2 | ||||
-rw-r--r-- | firmware/target/sh/archos/recorder/powermgmt-recorder.c | 4 |
6 files changed, 8 insertions, 8 deletions
diff --git a/firmware/core_alloc.c b/firmware/core_alloc.c index 53e5bf4a97..df1b4d3213 100644 --- a/firmware/core_alloc.c +++ b/firmware/core_alloc.c | |||
@@ -19,7 +19,7 @@ extern unsigned char audiobufend[]; | |||
19 | /* defined in linker script */ | 19 | /* defined in linker script */ |
20 | extern unsigned char audiobuffer[]; | 20 | extern unsigned char audiobuffer[]; |
21 | #else /* PLATFORM_HOSTED */ | 21 | #else /* PLATFORM_HOSTED */ |
22 | unsigned char audiobuffer[((MEMORYSIZE)*1024-768)*1024]; | 22 | static unsigned char audiobuffer[((MEMORYSIZE)*1024-768)*1024]; |
23 | unsigned char *audiobufend = audiobuffer + sizeof(audiobuffer); | 23 | unsigned char *audiobufend = audiobuffer + sizeof(audiobuffer); |
24 | extern unsigned char *audiobufend; | 24 | extern unsigned char *audiobufend; |
25 | #endif | 25 | #endif |
diff --git a/firmware/drivers/ramdisk.c b/firmware/drivers/ramdisk.c index c1f8824c93..44235c4575 100644 --- a/firmware/drivers/ramdisk.c +++ b/firmware/drivers/ramdisk.c | |||
@@ -27,9 +27,9 @@ | |||
27 | #define SECTOR_SIZE 512 | 27 | #define SECTOR_SIZE 512 |
28 | #define NUM_SECTORS 16384 | 28 | #define NUM_SECTORS 16384 |
29 | 29 | ||
30 | unsigned char ramdisk[SECTOR_SIZE * NUM_SECTORS]; | 30 | static unsigned char ramdisk[SECTOR_SIZE * NUM_SECTORS]; |
31 | 31 | ||
32 | long last_disk_activity = -1; | 32 | static long last_disk_activity = -1; |
33 | 33 | ||
34 | int ramdisk_read_sectors(IF_MD(int drive,) | 34 | int ramdisk_read_sectors(IF_MD(int drive,) |
35 | unsigned long start, | 35 | unsigned long start, |
diff --git a/firmware/logf.c b/firmware/logf.c index 2fdbfa0f0c..0f05c6590d 100644 --- a/firmware/logf.c +++ b/firmware/logf.c | |||
@@ -52,7 +52,7 @@ | |||
52 | #include "ata_idle_notify.h" | 52 | #include "ata_idle_notify.h" |
53 | 53 | ||
54 | unsigned char logdiskfbuffer[MAX_LOGDISKF_SIZE]; | 54 | unsigned char logdiskfbuffer[MAX_LOGDISKF_SIZE]; |
55 | int logdiskfindex; | 55 | static int logdiskfindex; |
56 | #endif | 56 | #endif |
57 | 57 | ||
58 | /* Only provide all this if asked to */ | 58 | /* Only provide all this if asked to */ |
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 61cf1b34c4..35c5c639f6 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -56,7 +56,7 @@ | |||
56 | #endif | 56 | #endif |
57 | 57 | ||
58 | /** Shared by sim **/ | 58 | /** Shared by sim **/ |
59 | int last_sent_battery_level = 100; | 59 | static int last_sent_battery_level = 100; |
60 | /* battery level (0-100%) */ | 60 | /* battery level (0-100%) */ |
61 | int battery_percent = -1; | 61 | int battery_percent = -1; |
62 | void send_battery_level_event(void); | 62 | void send_battery_level_event(void); |
diff --git a/firmware/target/hosted/filesystem-app.c b/firmware/target/hosted/filesystem-app.c index bcc880eab0..0c9943b635 100644 --- a/firmware/target/hosted/filesystem-app.c +++ b/firmware/target/hosted/filesystem-app.c | |||
@@ -41,7 +41,7 @@ | |||
41 | static const char rbhome[] = "/sdcard"; | 41 | static const char rbhome[] = "/sdcard"; |
42 | #elif (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) \ | 42 | #elif (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) \ |
43 | && !defined(__PCTOOL__) | 43 | && !defined(__PCTOOL__) |
44 | const char *rbhome; | 44 | static const char *rbhome; |
45 | #else | 45 | #else |
46 | /* YPR0, YPR1 */ | 46 | /* YPR0, YPR1 */ |
47 | static const char rbhome[] = HOME_DIR; | 47 | static const char rbhome[] = HOME_DIR; |
diff --git a/firmware/target/sh/archos/recorder/powermgmt-recorder.c b/firmware/target/sh/archos/recorder/powermgmt-recorder.c index 1e78b8d155..ca6067a4cc 100644 --- a/firmware/target/sh/archos/recorder/powermgmt-recorder.c +++ b/firmware/target/sh/archos/recorder/powermgmt-recorder.c | |||
@@ -85,8 +85,8 @@ static int wrcount = 0; | |||
85 | */ | 85 | */ |
86 | int long_delta; /* long term delta battery voltage */ | 86 | int long_delta; /* long term delta battery voltage */ |
87 | int short_delta; /* short term delta battery voltage */ | 87 | int short_delta; /* short term delta battery voltage */ |
88 | bool disk_activity_last_cycle = false; /* flag set to aid charger time | 88 | static bool disk_activity_last_cycle = false; /* flag set to aid charger time |
89 | * calculation */ | 89 | * calculation */ |
90 | char power_message[POWER_MESSAGE_LEN] = ""; /* message that's shown in | 90 | char power_message[POWER_MESSAGE_LEN] = ""; /* message that's shown in |
91 | debug menu */ | 91 | debug menu */ |
92 | /* percentage at which charging | 92 | /* percentage at which charging |