summaryrefslogtreecommitdiff
path: root/usr/src/lib/libcrypt
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2021-12-27 00:56:41 +0200
committerToomas Soome <tsoome@me.com>2022-01-17 23:22:34 +0200
commit53496f229747a02889ac4f8518b2e4b44ff2f9e0 (patch)
tree93063375edbc851c1587bbd389d3c084532ca109 /usr/src/lib/libcrypt
parentdc1259b65efc626c37cd057774d3e3393e84c33c (diff)
downloadillumos-gate-53496f229747a02889ac4f8518b2e4b44ff2f9e0.tar.gz
14349 libcrypt: mismatched bound
Reviewed by: Robert Mustacchi <rm@fingolfin.org> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libcrypt')
-rw-r--r--usr/src/lib/libcrypt/common/cryptio.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/usr/src/lib/libcrypt/common/cryptio.c b/usr/src/lib/libcrypt/common/cryptio.c
index 78b96aff48..613fdb3a31 100644
--- a/usr/src/lib/libcrypt/common/cryptio.c
+++ b/usr/src/lib/libcrypt/common/cryptio.c
@@ -25,9 +25,7 @@
*/
/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
+/* All Rights Reserved */
#pragma weak _run_setkey = run_setkey
#pragma weak _run_crypt = run_crypt
@@ -48,7 +46,7 @@
#define READER 0
#define WRITER 1
-#define KSIZE 8
+#define KSIZE 8
/* Global Variables */
static char key[KSIZE+1];
@@ -65,7 +63,7 @@ static int writekey();
void _exit();
int
-run_setkey(int p[2], const char *keyparam)
+run_setkey(int *p, const char *keyparam)
{
(void) mutex_lock(&lock);
if (cryptopen(p) == -1) {
@@ -119,7 +117,7 @@ writekey(int p[2], char *keyarg)
int
-run_crypt(long offset, char *buffer, unsigned int count, int p[2])
+run_crypt(long offset, char *buffer, unsigned int count, int *p)
{
struct header header;
void (*pstat) ();
@@ -193,7 +191,7 @@ crypt_close_nolock(int p[2])
}
int
-crypt_close(int p[2])
+crypt_close(int *p)
{
(void) mutex_lock(&lock);
(void) crypt_close_nolock(p);