mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-11 01:53:48 +00:00
Fix compiler warnings
pn532_uart.c:151: warning: no previous prototype for ‘pn532_connstring_decode’ pn532_uart.c:491: warning: no previous prototype for ‘pn532_uart_abort_command’
This commit is contained in:
@@ -146,7 +146,7 @@ struct pn532_uart_descriptor {
|
|||||||
uint32_t speed;
|
uint32_t speed;
|
||||||
};
|
};
|
||||||
|
|
||||||
int
|
static int
|
||||||
pn532_connstring_decode (const nfc_connstring connstring, struct pn532_uart_descriptor *desc)
|
pn532_connstring_decode (const nfc_connstring connstring, struct pn532_uart_descriptor *desc)
|
||||||
{
|
{
|
||||||
char *cs = malloc (strlen (connstring) + 1);
|
char *cs = malloc (strlen (connstring) + 1);
|
||||||
@@ -486,7 +486,7 @@ pn532_uart_ack (nfc_device *pnd)
|
|||||||
return (uart_send (DRIVER_DATA(pnd)->port, pn53x_ack_frame, sizeof (pn53x_ack_frame), 0));
|
return (uart_send (DRIVER_DATA(pnd)->port, pn53x_ack_frame, sizeof (pn53x_ack_frame), 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
pn532_uart_abort_command (nfc_device *pnd)
|
pn532_uart_abort_command (nfc_device *pnd)
|
||||||
{
|
{
|
||||||
if (pnd) {
|
if (pnd) {
|
||||||
|
|||||||
Reference in New Issue
Block a user