From 32917a9c0af3d78cd32029f348bbcb6cdc48a4a9 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Tue, 24 Aug 2010 09:23:48 +0000 Subject: [PATCH] Unbreak nfc-list on windows. The 'z' format modifier is not portable. Switch to a basic int and cast the size_t to an int. --- examples/nfc-list.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/nfc-list.c b/examples/nfc-list.c index 24a2e18..9b53257 100644 --- a/examples/nfc-list.c +++ b/examples/nfc-list.c @@ -149,7 +149,7 @@ int main(int argc, const char* argv[]) // List ISO14443A targets if (nfc_initiator_list_passive_targets(pnd, NM_ISO14443A_106, anti, MAX_TARGET_COUNT, &szTargetFound )) { size_t n; - printf("%zu ISO14443A passive target(s) was found%s\n", szTargetFound, (szTargetFound==0)?".\n":":"); + printf("%d ISO14443A passive target(s) was found%s\n", (int)szTargetFound, (szTargetFound==0)?".\n":":"); for(n=0; n