forked from len0rd/rockbox
More int -> long
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5654 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1265d03141
commit
34d2a71fdd
4 changed files with 5 additions and 5 deletions
|
|
@ -287,7 +287,7 @@ static void copy_read_sectors(unsigned char* buf, int wordcount)
|
||||||
#ifdef PREFER_C_READING
|
#ifdef PREFER_C_READING
|
||||||
unsigned short tmp = 0;
|
unsigned short tmp = 0;
|
||||||
|
|
||||||
if ( (unsigned int)buf & 1)
|
if ( (unsigned long)buf & 1)
|
||||||
{ /* not 16-bit aligned, copy byte by byte */
|
{ /* not 16-bit aligned, copy byte by byte */
|
||||||
unsigned char* bufend = buf + wordcount*2;
|
unsigned char* bufend = buf + wordcount*2;
|
||||||
do
|
do
|
||||||
|
|
@ -567,7 +567,7 @@ static void copy_write_sectors(const unsigned char* buf, int wordcount)
|
||||||
{
|
{
|
||||||
#ifdef PREFER_C_WRITING
|
#ifdef PREFER_C_WRITING
|
||||||
|
|
||||||
if ( (unsigned int)buf & 1)
|
if ( (unsigned long)buf & 1)
|
||||||
{ /* not 16-bit aligned, copy byte by byte */
|
{ /* not 16-bit aligned, copy byte by byte */
|
||||||
unsigned short tmp = 0;
|
unsigned short tmp = 0;
|
||||||
const unsigned char* bufend = buf + wordcount*2;
|
const unsigned char* bufend = buf + wordcount*2;
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,7 @@ struct bpb
|
||||||
int bpb_fatsz16; /* Number of used sectors per FAT structure */
|
int bpb_fatsz16; /* Number of used sectors per FAT structure */
|
||||||
unsigned long bpb_totsec32; /* Number of sectors on the volume
|
unsigned long bpb_totsec32; /* Number of sectors on the volume
|
||||||
(new 32-bit) */
|
(new 32-bit) */
|
||||||
int last_word; /* 0xAA55 */
|
unsigned int last_word; /* 0xAA55 */
|
||||||
|
|
||||||
/**** FAT32 specific *****/
|
/**** FAT32 specific *****/
|
||||||
long bpb_fatsz32;
|
long bpb_fatsz32;
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ int tick_remove_task(void (*f)(void));
|
||||||
extern void queue_init(struct event_queue *q);
|
extern void queue_init(struct event_queue *q);
|
||||||
extern void queue_wait(struct event_queue *q, struct event *ev);
|
extern void queue_wait(struct event_queue *q, struct event *ev);
|
||||||
extern void queue_wait_w_tmo(struct event_queue *q, struct event *ev, int ticks);
|
extern void queue_wait_w_tmo(struct event_queue *q, struct event *ev, int ticks);
|
||||||
extern void queue_post(struct event_queue *q, int id, void *data);
|
extern void queue_post(struct event_queue *q, long id, void *data);
|
||||||
extern bool queue_empty(const struct event_queue* q);
|
extern bool queue_empty(const struct event_queue* q);
|
||||||
void queue_clear(struct event_queue* q);
|
void queue_clear(struct event_queue* q);
|
||||||
extern int queue_broadcast(int id, void *data);
|
extern int queue_broadcast(int id, void *data);
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ void queue_wait_w_tmo(struct event_queue *q, struct event *ev, int ticks)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void queue_post(struct event_queue *q, int id, void *data)
|
void queue_post(struct event_queue *q, long id, void *data)
|
||||||
{
|
{
|
||||||
int wr;
|
int wr;
|
||||||
int oldlevel;
|
int oldlevel;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue