fix warning '... discards qualifiers from pointer target type' (missing const)

This commit is contained in:
Adam Laurie 2009-12-17 10:01:40 +00:00
parent 61a0aba66e
commit c0493a91e0
2 changed files with 2 additions and 2 deletions

View file

@ -147,7 +147,7 @@ bool pn53x_usb_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, s
return false; 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; nfc_device_t* pnd = NULL;
usb_spec_t* pus; usb_spec_t* pus;

View file

@ -38,7 +38,7 @@ typedef struct {
u_int16_t idProduct; u_int16_t idProduct;
} usb_candidate_t; } 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 get_end_points(struct usb_device *dev, usb_spec_t* pus);
void pn53x_usb_disconnect(nfc_device_t* pnd); 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); bool pn53x_usb_transceive(const nfc_device_spec_t nds, const byte_t* pbtTx, const size_t szTxLen, byte_t* pbtRx, size_t* pszRxLen);