From f0a1247693f4faab874e1c521ea8daea21188f3c Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 18 May 2012 16:04:42 +0000 Subject: [PATCH] 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' --- libfreefare/mad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libfreefare/mad.c b/libfreefare/mad.c index c547650..aa06d5a 100644 --- a/libfreefare/mad.c +++ b/libfreefare/mad.c @@ -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;