From 2def938fc6e09e4e693b9333440831926bdaf02c Mon Sep 17 00:00:00 2001 From: Yang Kun <91833768+ikspress@users.noreply.github.com> Date: Sat, 13 Jul 2024 00:19:02 +0800 Subject: [PATCH] Fix warnings --- libnfc/drivers/acr122s.c | 2 +- libnfc/drivers/arygon.c | 2 +- libnfc/drivers/pn532_uart.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libnfc/drivers/acr122s.c b/libnfc/drivers/acr122s.c index 9b13639a..df65a954 100644 --- a/libnfc/drivers/acr122s.c +++ b/libnfc/drivers/acr122s.c @@ -417,7 +417,7 @@ acr122s_scan(const nfc_context *context, nfc_connstring connstrings[], const siz size_t device_found = 0; serial_port sp; char **acPorts = uart_list_ports(); - const char *acPort; + char *acPort; int iDevice = 0; while ((acPort = acPorts[iDevice++])) { diff --git a/libnfc/drivers/arygon.c b/libnfc/drivers/arygon.c index 7dcac0b2..9f033299 100644 --- a/libnfc/drivers/arygon.c +++ b/libnfc/drivers/arygon.c @@ -103,7 +103,7 @@ arygon_scan(const nfc_context *context, nfc_connstring connstrings[], const size size_t device_found = 0; serial_port sp; char **acPorts = uart_list_ports(); - const char *acPort; + char *acPort; int iDevice = 0; while ((acPort = acPorts[iDevice++])) { diff --git a/libnfc/drivers/pn532_uart.c b/libnfc/drivers/pn532_uart.c index 48c9199d..1a935286 100644 --- a/libnfc/drivers/pn532_uart.c +++ b/libnfc/drivers/pn532_uart.c @@ -77,7 +77,7 @@ pn532_uart_scan(const nfc_context *context, nfc_connstring connstrings[], const size_t device_found = 0; serial_port sp; char **acPorts = uart_list_ports(); - const char *acPort; + char *acPort; int iDevice = 0; while ((acPort = acPorts[iDevice++])) {