mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Make a few local variables static
Change-Id: Ieb77a7f2cdf765afa3121320d03c0478cd97eb0f
This commit is contained in:
parent
5f5a83e1c9
commit
cfbd9cb22f
7 changed files with 10 additions and 10 deletions
|
|
@ -19,7 +19,7 @@ extern unsigned char audiobufend[];
|
|||
/* defined in linker script */
|
||||
extern unsigned char audiobuffer[];
|
||||
#else /* PLATFORM_HOSTED */
|
||||
unsigned char audiobuffer[((MEMORYSIZE)*1024-768)*1024];
|
||||
static unsigned char audiobuffer[((MEMORYSIZE)*1024-768)*1024];
|
||||
unsigned char *audiobufend = audiobuffer + sizeof(audiobuffer);
|
||||
extern unsigned char *audiobufend;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@
|
|||
#define SECTOR_SIZE 512
|
||||
#define NUM_SECTORS 16384
|
||||
|
||||
unsigned char ramdisk[SECTOR_SIZE * NUM_SECTORS];
|
||||
static unsigned char ramdisk[SECTOR_SIZE * NUM_SECTORS];
|
||||
|
||||
long last_disk_activity = -1;
|
||||
static long last_disk_activity = -1;
|
||||
|
||||
int ramdisk_read_sectors(IF_MD(int drive,)
|
||||
unsigned long start,
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
#include "ata_idle_notify.h"
|
||||
|
||||
unsigned char logdiskfbuffer[MAX_LOGDISKF_SIZE];
|
||||
int logdiskfindex;
|
||||
static int logdiskfindex;
|
||||
#endif
|
||||
|
||||
/* Only provide all this if asked to */
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
#endif
|
||||
|
||||
/** Shared by sim **/
|
||||
int last_sent_battery_level = 100;
|
||||
static int last_sent_battery_level = 100;
|
||||
/* battery level (0-100%) */
|
||||
int battery_percent = -1;
|
||||
void send_battery_level_event(void);
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
static const char rbhome[] = "/sdcard";
|
||||
#elif (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) \
|
||||
&& !defined(__PCTOOL__)
|
||||
const char *rbhome;
|
||||
static const char *rbhome;
|
||||
#else
|
||||
/* YPR0, YPR1 */
|
||||
static const char rbhome[] = HOME_DIR;
|
||||
|
|
|
|||
|
|
@ -85,8 +85,8 @@ static int wrcount = 0;
|
|||
*/
|
||||
int long_delta; /* long term delta battery voltage */
|
||||
int short_delta; /* short term delta battery voltage */
|
||||
bool disk_activity_last_cycle = false; /* flag set to aid charger time
|
||||
* calculation */
|
||||
static bool disk_activity_last_cycle = false; /* flag set to aid charger time
|
||||
* calculation */
|
||||
char power_message[POWER_MESSAGE_LEN] = ""; /* message that's shown in
|
||||
debug menu */
|
||||
/* percentage at which charging
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue