mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-04-11 09:06:17 +00:00
Merge branch 'master' into pn532_spi
This commit is contained in:
@@ -121,7 +121,7 @@ struct nfc_driver_list {
|
||||
const struct nfc_driver_list *nfc_drivers = NULL;
|
||||
|
||||
static void
|
||||
nfc_drivers_init()
|
||||
nfc_drivers_init(void)
|
||||
{
|
||||
#if defined (DRIVER_PN53X_USB_ENABLED)
|
||||
nfc_register_driver(&pn53x_usb_driver);
|
||||
@@ -1294,6 +1294,8 @@ int
|
||||
str_nfc_target(char **buf, const nfc_target nt, bool verbose)
|
||||
{
|
||||
*buf = malloc(4096);
|
||||
if (! *buf)
|
||||
return NFC_ESOFT;
|
||||
(*buf)[0] = '\0';
|
||||
sprint_nfc_target(*buf, nt, verbose);
|
||||
return strlen(*buf);
|
||||
|
||||
Reference in New Issue
Block a user