summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-17 20:38:46 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-24 22:51:00 +0200
commit8b354238d31bafea348dd8099f75ab23f0d9d4da (patch)
tree992b4b8a2ec73c68342bbe6fac5de25aff59e17f
parent22482a34969ead83c1ead01cff483998ef5960d4 (diff)
downloadcryptodev-linux-8b354238d31bafea348dd8099f75ab23f0d9d4da.tar.gz
cryptodev-linux-8b354238d31bafea348dd8099f75ab23f0d9d4da.tar.xz
cryptodev-linux-8b354238d31bafea348dd8099f75ab23f0d9d4da.zip
Use more specific types to avoid compat_ioctl
Using "int" would require conversions from compat_int_t.
-rw-r--r--ncr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ncr.h b/ncr.h
index af4c279..a8ae1e3 100644
--- a/ncr.h
+++ b/ncr.h
@@ -57,7 +57,7 @@ typedef enum {
/* Key handling
*/
-typedef int ncr_key_t;
+typedef __s32 ncr_key_t;
#define NCR_KEY_INVALID ((ncr_key_t)-1)
@@ -262,7 +262,7 @@ typedef enum {
NCR_OP_VERIFY,
} ncr_crypto_op_t;
-typedef int ncr_session_t;
+typedef __s32 ncr_session_t;
#define NCR_SESSION_INVALID ((ncr_session_t)-1)
/* input of CIOCGSESSION */