[Spice-commits] server/smartcard.c server/smartcard.h

Frediano Ziglio fziglio at kemper.freedesktop.org
Thu Mar 10 11:55:04 UTC 2016


 server/smartcard.c |    3 +++
 server/smartcard.h |    3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 23d328f7131d2022613c11c52ef4003b6f58a8f9
Author: Christophe Fergeau <cfergeau at redhat.com>
Date:   Tue Feb 24 12:05:22 2015 +0100

    smartcard: Move private constant to C file
    
    APDUBufSize is only used within smartcard.c, no need to expose it in
    smartcard.h
    
    Acked-by: Pavel Grunt <pgrunt at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/server/smartcard.c b/server/smartcard.c
index 1aef797..55382e2 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -46,6 +46,9 @@
  */
 #define SMARTCARD_MAX_READERS 10
 
+// Maximal length of APDU
+#define APDUBufSize 270
+
 typedef struct SmartCardDeviceState SmartCardDeviceState;
 
 typedef struct SmartCardChannelClient {
diff --git a/server/smartcard.h b/server/smartcard.h
index cf9d49b..32d2367 100644
--- a/server/smartcard.h
+++ b/server/smartcard.h
@@ -18,9 +18,6 @@
 #ifndef __SMART_CARD_H__
 #define __SMART_CARD_H__
 
-// Maximal length of APDU
-#define APDUBufSize 270
-
 /*
  * connect to smartcard interface, used by smartcard channel
  */


More information about the Spice-commits mailing list