Declare internal functions as static
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’
This commit is contained in:
parent
851d035588
commit
59b8ffcdb1
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue