Fix signedness to make gcc happy.

This commit is contained in:
Olivier Houchard 2007-10-25 22:50:25 +00:00
parent 179da74eb8
commit 26989574c9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172991
3 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@ InitEEPROM(void)
* .KB_C_FN_DEFINITION_END
*/
int
ReadEEPROM(unsigned ee_off, char *data_addr, unsigned size)
ReadEEPROM(unsigned ee_off, unsigned char *data_addr, unsigned size)
{
const AT91PS_TWI twiPtr = AT91C_BASE_TWI;
unsigned int status;
@ -145,7 +145,7 @@ WriteEEPROM(unsigned ee_off, char *data_addr, unsigned size)
{
const AT91PS_TWI twiPtr = AT91C_BASE_TWI;
unsigned status;
char test_data;
unsigned char test_data;
while (size--) {
if (!(ee_off & 0x3f))

View File

@ -199,7 +199,7 @@ TFTP_RequestFile(char *filename)
* .KB_C_FN_DEFINITION_END
*/
static void
TFTP_ACK_Data(char *data, unsigned short block_num, unsigned short len)
TFTP_ACK_Data(unsigned char *data, unsigned short block_num, unsigned short len)
{
tftp_header_t tftpHeader;

View File

@ -34,7 +34,7 @@ void printf(const char *fmt,...);
/* The following function write eeprom at ee_addr using data */
/* from data_add for size bytes. */
int ReadEEPROM(unsigned eeoff, char *data_addr, unsigned size);
int ReadEEPROM(unsigned eeoff, unsigned char *data_addr, unsigned size);
void WriteEEPROM(unsigned eeoff, char *data_addr, unsigned size);
void InitEEPROM(void);