Fix compiler warnings

mad.c:131: warning: no previous prototype for 'nxp_crc'
mad.c:147: warning: no previous prototype for 'sector_0x00_crc8'
mad.c:162: warning: no previous prototype for 'sector_0x10_crc8'
This commit is contained in:
Ludovic Rousseau 2012-05-18 16:04:42 +00:00
parent 78fea850c9
commit f0a1247693

View file

@ -126,7 +126,7 @@ mad_new (uint8_t version)
/*
* Compute CRC.
*/
void
static void
nxp_crc (uint8_t *crc, const uint8_t value)
{
/* x^8 + x^4 + x^3 + x^2 + 1 => 0x11d */
@ -142,7 +142,7 @@ nxp_crc (uint8_t *crc, const uint8_t value)
}
}
uint8_t
static uint8_t
sector_0x00_crc8 (Mad mad)
{
uint8_t crc = CRC_PRESET;
@ -157,7 +157,7 @@ sector_0x00_crc8 (Mad mad)
return crc;
}
uint8_t
static uint8_t
sector_0x10_crc8 (Mad mad)
{
uint8_t crc = CRC_PRESET;