fixed warning and illogical signed use

This commit is contained in:
Raphaël Assénat 2012-04-14 14:46:05 +00:00
parent 875c7a7059
commit 30ded39aad
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@
/*********** prototypes *************/
static void fournsnesInit(void);
static void fournsnesUpdate(void);
static char fournsnesChanged(char report_id);
static char fournsnesChanged(unsigned char report_id);
static char fournsnesBuildReport(unsigned char *reportBuffer, char report_id);
@ -480,7 +480,7 @@ static void fournsnesUpdate(void)
}
static char fournsnesChanged(char report_id)
static char fournsnesChanged(unsigned char report_id)
{
report_id--; // first report is 1

View File

@ -14,7 +14,7 @@ typedef struct {
void (*init)(void);
void (*update)(void);
char (*changed)(char id);
char (*changed)(unsigned char id);
/**
* \param id Controller id (starting at 1 to match report IDs)
* \return The number of bytes written to buf.