From c0493a91e0dd95f152d7f9a469abd87f9431f210 Mon Sep 17 00:00:00 2001 From: Adam Laurie Date: Thu, 17 Dec 2009 10:01:40 +0000 Subject: [PATCH] fix warning '... discards qualifiers from pointer target type' (missing const) --- src/lib/drivers/pn53x_usb.c | 2 +- src/lib/drivers/pn53x_usb.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/drivers/pn53x_usb.c b/src/lib/drivers/pn53x_usb.c index 3a423e2..329fb9f 100644 --- a/src/lib/drivers/pn53x_usb.c +++ b/src/lib/drivers/pn53x_usb.c @@ -147,7 +147,7 @@ bool pn53x_usb_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, s return false; } -nfc_device_t* pn53x_usb_connect(const nfc_device_desc_t* pndd, char * target_name, int target_chip) +nfc_device_t* pn53x_usb_connect(const nfc_device_desc_t* pndd,const char * target_name, int target_chip) { nfc_device_t* pnd = NULL; usb_spec_t* pus; diff --git a/src/lib/drivers/pn53x_usb.h b/src/lib/drivers/pn53x_usb.h index f7b21d4..8bf7d0b 100644 --- a/src/lib/drivers/pn53x_usb.h +++ b/src/lib/drivers/pn53x_usb.h @@ -38,7 +38,7 @@ typedef struct { u_int16_t idProduct; } usb_candidate_t; -nfc_device_t* pn53x_usb_connect(const nfc_device_desc_t* pndd, char * target_name, int target_chip); +nfc_device_t* pn53x_usb_connect(const nfc_device_desc_t* pndd,const char * target_name, int target_chip); void get_end_points(struct usb_device *dev, usb_spec_t* pus); void pn53x_usb_disconnect(nfc_device_t* pnd); bool pn53x_usb_transceive(const nfc_device_spec_t nds, const byte_t* pbtTx, const size_t szTxLen, byte_t* pbtRx, size_t* pszRxLen);