From 6a6ae42a97c9675168819720935e1429d1742ec9 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Fri, 20 Aug 2010 10:42:31 +0000 Subject: [PATCH] Fix minor compilation warnings --- libnfc/drivers/arygon.c | 2 +- libnfc/drivers/pn532_uart.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libnfc/drivers/arygon.c b/libnfc/drivers/arygon.c index 4d5c8bf..ffa70b6 100644 --- a/libnfc/drivers/arygon.c +++ b/libnfc/drivers/arygon.c @@ -113,7 +113,7 @@ arygon_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, size_t *p const char* pcPort; int iDevice = 0; - while( pcPort = pcPorts[iDevice++] ) { + while( (pcPort = pcPorts[iDevice++]) ) { sp = uart_open(pcPort); DBG("Trying to find ARYGON device on serial port: %s at %d bauds.", pcPort, SERIAL_DEFAULT_PORT_SPEED); diff --git a/libnfc/drivers/pn532_uart.c b/libnfc/drivers/pn532_uart.c index 982cd82..657cc1d 100644 --- a/libnfc/drivers/pn532_uart.c +++ b/libnfc/drivers/pn532_uart.c @@ -88,7 +88,7 @@ pn532_uart_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, size_ const char* pcPort; int iDevice = 0; - while( pcPort = pcPorts[iDevice++] ) { + while( (pcPort = pcPorts[iDevice++]) ) { sp = uart_open(pcPort); DBG("Trying to find PN532 device on serial port: %s at %d bauds.", pcPort, SERIAL_DEFAULT_PORT_SPEED);