mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Limit more variables to file scope
Change-Id: I30219d626316776eb73b4205d63376fa3dbc6361
This commit is contained in:
parent
85c98bc63c
commit
2a3e1628a5
21 changed files with 70 additions and 77 deletions
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
#define SECTOR_SIZE (512)
|
||||
|
||||
long last_disk_activity = -1;
|
||||
static long last_disk_activity = -1;
|
||||
|
||||
#if CONFIG_FLASH == FLASH_IFP7XX
|
||||
static unsigned char flash_ce[4] = {0x20, 0x02, 0x10, 0x08};
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ enum {
|
|||
#endif
|
||||
};
|
||||
|
||||
const struct xchar_info xchar_info_newlcd[] = {
|
||||
static const struct xchar_info xchar_info_newlcd[] = {
|
||||
/* Standard ascii */
|
||||
{ 0x20, 0, 0, 0x20 }, /* */
|
||||
{ 0x21, 0, 0, 0x21 }, /* ! */
|
||||
|
|
@ -641,7 +641,7 @@ const struct xchar_info xchar_info_newlcd[] = {
|
|||
{ 0xfffd, 0, 0, 0x91 },
|
||||
};
|
||||
|
||||
const struct xchar_info xchar_info_oldlcd[] = {
|
||||
static const struct xchar_info xchar_info_oldlcd[] = {
|
||||
/* Standard ascii */
|
||||
{ 0x20, 0, 0, 0x24 }, /* */
|
||||
{ 0x21, 0, 0, 0x25 }, /* ! */
|
||||
|
|
|
|||
|
|
@ -52,12 +52,12 @@ static int shrink_callback(int handle, unsigned hints, void* start, size_t size)
|
|||
return BUFLIB_CB_CANNOT_SHRINK;
|
||||
}
|
||||
|
||||
struct buflib_callbacks ops = {
|
||||
static struct buflib_callbacks ops = {
|
||||
.move_callback = move_callback,
|
||||
.shrink_callback = shrink_callback,
|
||||
};
|
||||
|
||||
struct buflib_callbacks ops2 = {
|
||||
static struct buflib_callbacks ops2 = {
|
||||
.move_callback = NULL,
|
||||
.shrink_callback = shrink_callback,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ struct buflib_callbacks ops = {
|
|||
.shrink_callback = NULL,
|
||||
};
|
||||
|
||||
struct buflib_callbacks ops_no_move = {
|
||||
static struct buflib_callbacks ops_no_move = {
|
||||
.move_callback = NULL,
|
||||
.shrink_callback = NULL,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue