summaryrefslogtreecommitdiff
path: root/vscard_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'vscard_common.h')
-rw-r--r--vscard_common.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/vscard_common.h b/vscard_common.h
index 5cb6eb5..59bcb68 100644
--- a/vscard_common.h
+++ b/vscard_common.h
@@ -15,7 +15,7 @@
*
* Copyright (c) 2011 Red Hat.
*
- * This code is licensed under the LGPL.
+ * This code is licensed under the GNU LGPL, version 2 or later.
*/
#ifndef VSCARD_COMMON_H
@@ -28,9 +28,9 @@
#define VERSION_MINOR_BITS 10
#define MAKE_VERSION(major, middle, minor) \
- ( (major << (VERSION_MINOR_BITS + VERSION_MIDDLE_BITS)) \
+ ((major << (VERSION_MINOR_BITS + VERSION_MIDDLE_BITS)) \
| (middle << VERSION_MINOR_BITS) \
- | (minor) )
+ | (minor))
/** IMPORTANT NOTE on VERSION
*
@@ -45,7 +45,7 @@
* something that cannot be accomodated with the existing protocol.
*/
-#define VSCARD_VERSION MAKE_VERSION(0,0,2)
+#define VSCARD_VERSION MAKE_VERSION(0, 0, 2)
typedef enum VSCMsgType {
VSC_Init = 1,
@@ -60,8 +60,8 @@ typedef enum VSCMsgType {
} VSCMsgType;
typedef enum VSCErrorCode {
- VSC_SUCCESS=0,
- VSC_GENERAL_ERROR=1,
+ VSC_SUCCESS = 0,
+ VSC_GENERAL_ERROR = 1,
VSC_CANNOT_ADD_MORE_READERS,
VSC_CARD_ALREAY_INSERTED,
} VSCErrorCode;
@@ -69,7 +69,7 @@ typedef enum VSCErrorCode {
#define VSCARD_UNDEFINED_READER_ID 0xffffffff
#define VSCARD_MINIMAL_READER_ID 0
-#define VSCARD_MAGIC (*(uint32_t*)"VSCD")
+#define VSCARD_MAGIC (*(uint32_t *)"VSCD")
/* Header
* Each message starts with the header.