From 0d24644f5243b3420c18e7afdee9ae641f179a56 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 4 May 2014 13:58:54 +0200 Subject: sim: reader_pcsc.c: Avoid compiler warnings by using pcsc-lite LONG --- src/sim/reader_pcsc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sim') 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)); -- cgit v1.2.3