summaryrefslogtreecommitdiffstats
path: root/src/sim
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-05-04 13:58:54 +0200
committerHarald Welte <laforge@gnumonks.org>2014-10-26 19:09:23 +0100
commit0d24644f5243b3420c18e7afdee9ae641f179a56 (patch)
tree333461130d832442ccdde211c8d5b27f53b01106 /src/sim
parente8dd2bd4b52f4ee6c3ecb4a5b4b4386d281b35a7 (diff)
sim: reader_pcsc.c: Avoid compiler warnings by using pcsc-lite LONG
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/reader_pcsc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sim/reader_pcsc.c b/src/sim/reader_pcsc.c
index b490b97f..c5b8112b 100644
--- a/src/sim/reader_pcsc.c
+++ b/src/sim/reader_pcsc.c
@@ -57,7 +57,7 @@ static struct osim_reader_hdl *pcsc_reader_open(int num, const char *id, void *c
{
struct osim_reader_hdl *rh;
struct pcsc_reader_state *st;
- long rc;
+ LONG rc;
LPSTR mszReaders = NULL;
DWORD dwReaders;
unsigned int num_readers;
@@ -102,7 +102,7 @@ static struct osim_card_hdl *pcsc_card_open(struct osim_reader_hdl *rh)
struct pcsc_reader_state *st = rh->priv;
struct osim_card_hdl *card;
struct osim_chan_hdl *chan;
- int rc;
+ LONG rc;
rc = SCardConnect(st->hContext, st->name, SCARD_SHARE_SHARED,
SCARD_PROTOCOL_T0, &st->hCard, &st->dwActiveProtocol);
@@ -131,7 +131,7 @@ static int pcsc_transceive(struct osim_reader_hdl *rh, struct msgb *msg)
{
struct pcsc_reader_state *st = rh->priv;
DWORD rlen = msgb_tailroom(msg);
- int rc;
+ LONG rc;
printf("TX: %s\n", osmo_hexdump(msg->data, msg->len));