Remove nfc-defines.h public header.

Use NULL instead of INVALID_DEVICE_INFO to know if device is valid.
Make distcheck OK
This commit is contained in:
Romuald Conty
2009-11-10 09:47:59 +00:00
parent 9fccd11fc7
commit aa8bb42d9f
27 changed files with 106 additions and 111 deletions

View File

@@ -32,6 +32,8 @@
#include "nfc-messages.h"
#include "bitutils.h"
#define MAX_FRAME_LEN 264
static byte_t abtRecv[MAX_FRAME_LEN];
static size_t szRecvBits;
static nfc_device_t* pnd;
@@ -87,7 +89,7 @@ int main(int argc, char *argv[])
// Try to open the NFC reader
pnd = nfc_connect(NULL);
if (pnd == INVALID_DEVICE_INFO)
if (pnd == NULL)
{
printf("Error connecting NFC reader\n");
return 1;