summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-05 18:07:15 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-05 18:07:15 +0200
commit6f6f390079dac792aff568b278b8329c671e08e4 (patch)
treeba17b7e928399e80b20af079f397e34fcbfaf178
parent0fa33314a085047798b2ba737b179272c90243e4 (diff)
parenta2ba41e2ad3a7ec399e9216be81cc2e244f45dd9 (diff)
downloadcryptodev-linux-6f6f390079dac792aff568b278b8329c671e08e4.tar.gz
cryptodev-linux-6f6f390079dac792aff568b278b8329c671e08e4.tar.xz
cryptodev-linux-6f6f390079dac792aff568b278b8329c671e08e4.zip
Merge branch 'replace-lists'
-rw-r--r--ncr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ncr.h b/ncr.h
index 53c77be..b8ca98e 100644
--- a/ncr.h
+++ b/ncr.h
@@ -59,7 +59,7 @@ typedef enum {
typedef int ncr_key_t;
-#define NCR_KEY_INVALID (ncr_key_t)(0)
+#define NCR_KEY_INVALID ((ncr_key_t)-1)
#define NCR_KEY_FLAG_EXPORTABLE 1
#define NCR_KEY_FLAG_WRAPPABLE (1<<1)
@@ -249,7 +249,7 @@ typedef enum {
} ncr_crypto_op_t;
typedef int ncr_session_t;
-#define NCR_SESSION_INVALID (ncr_session_t)0
+#define NCR_SESSION_INVALID ((ncr_session_t)-1)
/* input of CIOCGSESSION */
struct ncr_session_st {