summaryrefslogtreecommitdiffstats
path: root/userspace/ncrypto_key.c
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/ncrypto_key.c')
-rw-r--r--userspace/ncrypto_key.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/userspace/ncrypto_key.c b/userspace/ncrypto_key.c
index 5321c78..9201d43 100644
--- a/userspace/ncrypto_key.c
+++ b/userspace/ncrypto_key.c
@@ -5,13 +5,12 @@
#include <errno.h>
#include <linux/ncr.h>
#include "ncrypto.h"
-
-extern int __ncr_file_descriptor;
+#include "ncrypto_internal.h"
int
ncr_key_init(ncr_key_t *key)
{
- if ((__ncr_file_descriptor < 0) && (ncr_global_init(0) < 0))
+ if ((__ncr_file_descriptor < 0) && (__ncr_global_init() < 0))
return -1;
if (ioctl(__ncr_file_descriptor, NCRIO_KEY_INIT, key) < 0)