From 0d0961c483f9cd0e195f88c0c82dbf2c859f88fe Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 23 Jun 2014 17:14:15 +0200 Subject: [PATCH] Fix syntax error introduced with 60bd6488 * g10/apdu.c (pcsc_dword_t): Fix syntax error. --- g10/apdu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/g10/apdu.c b/g10/apdu.c index 6e7faf0ff..66cf30b1c 100644 --- a/g10/apdu.c +++ b/g10/apdu.c @@ -84,7 +84,7 @@ #endif #if defined(__APPLE__) || defined(_WIN32) || defined(__CYGWIN__) -typedef unsinged int pcsc_dword_t; +typedef unsigned int pcsc_dword_t; #else typedef unsigned long pcsc_dword_t; #endif @@ -1290,7 +1290,7 @@ connect_pcsc_card (int slot) { char reader[250]; pcsc_dword_t readerlen, atrlen; - long card_state, card_protocol; + pcsc_dword_t card_state, card_protocol; atrlen = DIM (reader_table[0].atr); readerlen = sizeof reader -1 ; @@ -1300,7 +1300,8 @@ connect_pcsc_card (int slot) reader_table[slot].atr, &atrlen); if (err) log_error ("pcsc_status failed: %s (0x%lx) %lu\n", - pcsc_error_string (err), err, readerlen); + pcsc_error_string (err), + (unsigned long)err, (unsigned long)readerlen); else { if (atrlen > DIM (reader_table[0].atr))