diff options
author | phk <phk@FreeBSD.org> | 2003-05-31 19:23:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-31 19:23:11 +0000 |
commit | 48e54f8060cec2d3d21a372cdaead1cc8986dfe4 (patch) | |
tree | 6022f7e47ade6c6a425a3a7c6824419b8f88ead9 /sys | |
parent | c48dbf175867f36946e458d212067330206a7a7c (diff) | |
download | FreeBSD-src-48e54f8060cec2d3d21a372cdaead1cc8986dfe4.zip FreeBSD-src-48e54f8060cec2d3d21a372cdaead1cc8986dfe4.tar.gz |
Don't use & in front of arrays.
Found by: FlexeLint
Diffstat (limited to 'sys')
-rw-r--r-- | sys/geom/bde/g_bde_crypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |