From 53496f229747a02889ac4f8518b2e4b44ff2f9e0 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Mon, 27 Dec 2021 00:56:41 +0200 Subject: 14349 libcrypt: mismatched bound Reviewed by: Robert Mustacchi Approved by: Dan McDonald --- usr/src/lib/libcrypt/common/cryptio.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'usr/src') 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); -- cgit v1.2.3