From 59b8ffcdb120364ef47651a185b080a90d9656da Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sun, 13 May 2012 12:23:42 +0000 Subject: [PATCH] Declare internal functions as static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes compiler warnings: acr122_pcsc.c:106: warning: no previous prototype for ‘acr122_pcsc_get_scardcontext’ acr122_pcsc.c:118: warning: no previous prototype for ‘acr122_pcsc_free_scardcontext’ acr122_pcsc.c:198: warning: no previous prototype for ‘acr122_pcsc_connstring_decode’ --- libnfc/drivers/acr122_pcsc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libnfc/drivers/acr122_pcsc.c b/libnfc/drivers/acr122_pcsc.c index 4c89713..8312ca7 100644 --- a/libnfc/drivers/acr122_pcsc.c +++ b/libnfc/drivers/acr122_pcsc.c @@ -101,7 +101,7 @@ struct acr122_pcsc_data { static SCARDCONTEXT _SCardContext; static int _iSCardContextRefCount = 0; -SCARDCONTEXT * +static SCARDCONTEXT * acr122_pcsc_get_scardcontext (void) { if (_iSCardContextRefCount == 0) { @@ -113,7 +113,7 @@ acr122_pcsc_get_scardcontext (void) return &_SCardContext; } -void +static void acr122_pcsc_free_scardcontext (void) { if (_iSCardContextRefCount) { @@ -193,7 +193,7 @@ struct acr122_pcsc_descriptor { int bus_index; }; -int +static int acr122_pcsc_connstring_decode (const nfc_connstring connstring, struct acr122_pcsc_descriptor *desc) { char *cs = malloc (strlen (connstring) + 1);