1
0
Fork 0
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:
Jean-Philippe Bernardy 2005-01-24 14:26:24 +00:00
parent 1265d03141
commit 34d2a71fdd
4 changed files with 5 additions and 5 deletions

View file

@ -287,7 +287,7 @@ static void copy_read_sectors(unsigned char* buf, int wordcount)
#ifdef PREFER_C_READING
unsigned short tmp = 0;
if ( (unsigned int)buf & 1)
if ( (unsigned long)buf & 1)
{ /* not 16-bit aligned, copy byte by byte */
unsigned char* bufend = buf + wordcount*2;
do
@ -567,7 +567,7 @@ static void copy_write_sectors(const unsigned char* buf, int wordcount)
{
#ifdef PREFER_C_WRITING
if ( (unsigned int)buf & 1)
if ( (unsigned long)buf & 1)
{ /* not 16-bit aligned, copy byte by byte */
unsigned short tmp = 0;
const unsigned char* bufend = buf + wordcount*2;

View file

@ -199,7 +199,7 @@ struct bpb
int bpb_fatsz16; /* Number of used sectors per FAT structure */
unsigned long bpb_totsec32; /* Number of sectors on the volume
(new 32-bit) */
int last_word; /* 0xAA55 */
unsigned int last_word; /* 0xAA55 */
/**** FAT32 specific *****/
long bpb_fatsz32;

View file

@ -74,7 +74,7 @@ int tick_remove_task(void (*f)(void));
extern void queue_init(struct event_queue *q);
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_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);
void queue_clear(struct event_queue* q);
extern int queue_broadcast(int id, void *data);

View file

@ -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 oldlevel;