Make a few local variables static

Change-Id: Ieb77a7f2cdf765afa3121320d03c0478cd97eb0f
This commit is contained in:
Thomas Jarosch 2015-01-11 18:02:43 +01:00
parent 5f5a83e1c9
commit cfbd9cb22f
7 changed files with 10 additions and 10 deletions

View file

@ -115,7 +115,7 @@ static enum audio_buffer_state
/** Main state control **/ /** Main state control **/
static bool ff_rw_mode SHAREDBSS_ATTR = false; /* Pre-ff-rewind mode (A,O-) */ static bool ff_rw_mode SHAREDBSS_ATTR = false; /* Pre-ff-rewind mode (A,O-) */
enum play_status static enum play_status
{ {
PLAY_STOPPED = 0, PLAY_STOPPED = 0,
PLAY_PLAYING = AUDIO_STATUS_PLAY, PLAY_PLAYING = AUDIO_STATUS_PLAY,
@ -268,7 +268,7 @@ enum track_load_status
/** Track change controls **/ /** Track change controls **/
/* What sort of skip is pending globally? */ /* What sort of skip is pending globally? */
enum track_skip_type static enum track_skip_type
{ {
/* Relative to what user is intended to see: */ /* Relative to what user is intended to see: */
/* Codec: +0, Track List: +0, Playlist: +0 */ /* Codec: +0, Track List: +0, Playlist: +0 */

View file

@ -19,7 +19,7 @@ extern unsigned char audiobufend[];
/* defined in linker script */ /* defined in linker script */
extern unsigned char audiobuffer[]; extern unsigned char audiobuffer[];
#else /* PLATFORM_HOSTED */ #else /* PLATFORM_HOSTED */
unsigned char audiobuffer[((MEMORYSIZE)*1024-768)*1024]; static unsigned char audiobuffer[((MEMORYSIZE)*1024-768)*1024];
unsigned char *audiobufend = audiobuffer + sizeof(audiobuffer); unsigned char *audiobufend = audiobuffer + sizeof(audiobuffer);
extern unsigned char *audiobufend; extern unsigned char *audiobufend;
#endif #endif

View file

@ -27,9 +27,9 @@
#define SECTOR_SIZE 512 #define SECTOR_SIZE 512
#define NUM_SECTORS 16384 #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,) int ramdisk_read_sectors(IF_MD(int drive,)
unsigned long start, unsigned long start,

View file

@ -52,7 +52,7 @@
#include "ata_idle_notify.h" #include "ata_idle_notify.h"
unsigned char logdiskfbuffer[MAX_LOGDISKF_SIZE]; unsigned char logdiskfbuffer[MAX_LOGDISKF_SIZE];
int logdiskfindex; static int logdiskfindex;
#endif #endif
/* Only provide all this if asked to */ /* Only provide all this if asked to */

View file

@ -56,7 +56,7 @@
#endif #endif
/** Shared by sim **/ /** Shared by sim **/
int last_sent_battery_level = 100; static int last_sent_battery_level = 100;
/* battery level (0-100%) */ /* battery level (0-100%) */
int battery_percent = -1; int battery_percent = -1;
void send_battery_level_event(void); void send_battery_level_event(void);

View file

@ -41,7 +41,7 @@
static const char rbhome[] = "/sdcard"; static const char rbhome[] = "/sdcard";
#elif (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) \ #elif (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) \
&& !defined(__PCTOOL__) && !defined(__PCTOOL__)
const char *rbhome; static const char *rbhome;
#else #else
/* YPR0, YPR1 */ /* YPR0, YPR1 */
static const char rbhome[] = HOME_DIR; static const char rbhome[] = HOME_DIR;

View file

@ -85,8 +85,8 @@ static int wrcount = 0;
*/ */
int long_delta; /* long term delta battery voltage */ int long_delta; /* long term delta battery voltage */
int short_delta; /* short term delta battery voltage */ int short_delta; /* short term delta battery voltage */
bool disk_activity_last_cycle = false; /* flag set to aid charger time static bool disk_activity_last_cycle = false; /* flag set to aid charger time
* calculation */ * calculation */
char power_message[POWER_MESSAGE_LEN] = ""; /* message that's shown in char power_message[POWER_MESSAGE_LEN] = ""; /* message that's shown in
debug menu */ debug menu */
/* percentage at which charging /* percentage at which charging