summaryrefslogtreecommitdiffstats
path: root/scd/pcsc-wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/pcsc-wrapper.c')
-rw-r--r--scd/pcsc-wrapper.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/scd/pcsc-wrapper.c b/scd/pcsc-wrapper.c
index b913cdc12..a7b219822 100644
--- a/scd/pcsc-wrapper.c
+++ b/scd/pcsc-wrapper.c
@@ -243,10 +243,10 @@ read_32 (FILE *fp)
{
int c1, c2, c3, c4;
- c1 = getc (stdin);
- c2 = getc (stdin);
- c3 = getc (stdin);
- c4 = getc (stdin);
+ c1 = getc (fp);
+ c2 = getc (fp);
+ c3 = getc (fp);
+ c4 = getc (fp);
if (c1 == EOF || c2 == EOF || c3 == EOF || c4 == EOF)
{
fprintf (stderr, PGM ": premature EOF while parsing request\n");
@@ -518,6 +518,9 @@ handle_open (unsigned char *argbuf, size_t arglen)
static void
handle_close (unsigned char *argbuf, size_t arglen)
{
+ (void)argbuf;
+ (void)arglen;
+
if (!driver_is_open)
{
fprintf (stderr, PGM ": PC/SC has not yet been opened\n");
@@ -546,6 +549,9 @@ handle_status (unsigned char *argbuf, size_t arglen)
int status;
unsigned char buf[20];
+ (void)argbuf;
+ (void)arglen;
+
if (!driver_is_open)
{
fprintf (stderr, PGM ": PC/SC has not yet been opened\n");
@@ -614,6 +620,9 @@ handle_reset (unsigned char *argbuf, size_t arglen)
unsigned long nreader, atrlen;
unsigned long card_state, card_protocol;
+ (void)argbuf;
+ (void)arglen;
+
if (!driver_is_open)
{
fprintf (stderr, PGM ": PC/SC has not yet been opened\n");