From 48e54f8060cec2d3d21a372cdaead1cc8986dfe4 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 31 May 2003 19:23:11 +0000 Subject: Don't use & in front of arrays. Found by: FlexeLint --- sys/geom/bde/g_bde_crypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/geom/bde') diff --git a/sys/geom/bde/g_bde_crypt.c b/sys/geom/bde/g_bde_crypt.c index 0dcdab5..97fe8d2 100644 --- a/sys/geom/bde/g_bde_crypt.c +++ b/sys/geom/bde/g_bde_crypt.c @@ -197,7 +197,7 @@ g_bde_crypt_write(struct g_bde_work *wp) bcopy(s, d, sc->sectorsize); } #else - arc4rand(&skey, sizeof skey, 0); + arc4rand(skey, sizeof skey, 0); AES_makekey(&ki, DIR_ENCRYPT, G_BDE_SKEYBITS, skey); AES_encrypt(&ci, &ki, s, d, sc->sectorsize); #endif @@ -243,7 +243,7 @@ g_bde_crypt_delete(struct g_bde_work *wp) */ for (o = 0; o < wp->length; o += sc->sectorsize) { arc4rand(d, sc->sectorsize, 0); - arc4rand(&skey, sizeof skey, 0); + arc4rand(skey, sizeof skey, 0); AES_makekey(&ki, DIR_ENCRYPT, G_BDE_SKEYBITS, skey); AES_encrypt(&ci, &ki, d, d, sc->sectorsize); d += sc->sectorsize; -- cgit v1.1