Fix a bunch of warnings.
This commit is contained in:
parent
2256d5d3dc
commit
e9b2f5729c
5 changed files with 7 additions and 1 deletions
|
@ -63,6 +63,7 @@ static bool init_mfc_auth = false;
|
||||||
static void
|
static void
|
||||||
intr_hdlr (int sig)
|
intr_hdlr (int sig)
|
||||||
{
|
{
|
||||||
|
(void) sig;
|
||||||
printf ("\nQuitting...\n");
|
printf ("\nQuitting...\n");
|
||||||
if (pnd != NULL) {
|
if (pnd != NULL) {
|
||||||
nfc_close(pnd);
|
nfc_close(pnd);
|
||||||
|
|
|
@ -68,6 +68,7 @@ uint8_t abtSak[9] = { 0x08, 0xb6, 0xdd };
|
||||||
static void
|
static void
|
||||||
intr_hdlr (int sig)
|
intr_hdlr (int sig)
|
||||||
{
|
{
|
||||||
|
(void) sig;
|
||||||
if (pnd != NULL) {
|
if (pnd != NULL) {
|
||||||
printf ("\nAborting current command...\n");
|
printf ("\nAborting current command...\n");
|
||||||
nfc_abort_command (pnd);
|
nfc_abort_command (pnd);
|
||||||
|
|
|
@ -63,6 +63,7 @@ static bool quitting = false;
|
||||||
static void
|
static void
|
||||||
intr_hdlr (int sig)
|
intr_hdlr (int sig)
|
||||||
{
|
{
|
||||||
|
(void) sig;
|
||||||
printf ("\nQuitting...\n");
|
printf ("\nQuitting...\n");
|
||||||
quitting = true;
|
quitting = true;
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -495,6 +495,7 @@ RDR_to_PC_DataBlock SW: more data: 8 bytes
|
||||||
static size_t
|
static size_t
|
||||||
acr122_build_frame (uint8_t *frame, const size_t frame_len, const uint8_t *data, const size_t data_len)
|
acr122_build_frame (uint8_t *frame, const size_t frame_len, const uint8_t *data, const size_t data_len)
|
||||||
{
|
{
|
||||||
|
(void) frame_len;
|
||||||
frame[1] = data_len + 6;
|
frame[1] = data_len + 6;
|
||||||
frame[14] = data_len + 1;
|
frame[14] = data_len + 1;
|
||||||
memcpy (frame + 16, data, data_len);
|
memcpy (frame + 16, data, data_len);
|
||||||
|
@ -579,7 +580,7 @@ read:
|
||||||
|
|
||||||
size_t len = abtRxBuf[offset++];
|
size_t len = abtRxBuf[offset++];
|
||||||
if (len < 4) {
|
if (len < 4) {
|
||||||
log_put (LOG_CATEGORY, NFC_PRIORITY_ERROR, "Too small reply");
|
log_put (LOG_CATEGORY, NFC_PRIORITY_ERROR, "%s", "Too small reply");
|
||||||
pnd->last_error = NFC_EIO;
|
pnd->last_error = NFC_EIO;
|
||||||
return pnd->last_error;
|
return pnd->last_error;
|
||||||
}
|
}
|
||||||
|
@ -623,6 +624,7 @@ read:
|
||||||
int
|
int
|
||||||
acr122_usb_ack (nfc_device *pnd)
|
acr122_usb_ack (nfc_device *pnd)
|
||||||
{
|
{
|
||||||
|
(void) pnd;
|
||||||
return 0;
|
return 0;
|
||||||
//return acr122_usb_bulk_write (DRIVER_DATA (pnd), (uint8_t *) pn53x_ack_frame, sizeof (pn53x_ack_frame), 1000);
|
//return acr122_usb_bulk_write (DRIVER_DATA (pnd), (uint8_t *) pn53x_ack_frame, sizeof (pn53x_ack_frame), 1000);
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,6 +74,7 @@ FILE * fd4;
|
||||||
static void
|
static void
|
||||||
intr_hdlr (int sig)
|
intr_hdlr (int sig)
|
||||||
{
|
{
|
||||||
|
(void) sig;
|
||||||
printf ("\nQuitting...\n");
|
printf ("\nQuitting...\n");
|
||||||
printf ("Please send a last command to the emulator to quit properly.\n");
|
printf ("Please send a last command to the emulator to quit properly.\n");
|
||||||
quitting = true;
|
quitting = true;
|
||||||
|
|
Loading…
Reference in a new issue