diff options
author | Nathan Binkert <nate@cvs.openbsd.org> | 2000-08-19 13:43:24 +0000 |
---|---|---|
committer | Nathan Binkert <nate@cvs.openbsd.org> | 2000-08-19 13:43:24 +0000 |
commit | 0b6f33c21cc38ed9d26eac726b28b09a50b144dc (patch) | |
tree | 6a8e7478c87f4d1c36bfc09124e798fbb8d5c9fe /sys/crypto/crypto.c | |
parent | cd03ae963fe71d81ff1d2673e48c0045a003aa2e (diff) |
MALLOC/FREE -> malloc/free ok art@ angelos@
Diffstat (limited to 'sys/crypto/crypto.c')
-rw-r--r-- | sys/crypto/crypto.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/crypto/crypto.c b/sys/crypto/crypto.c index b09ece09ce6..69e929313c7 100644 --- a/sys/crypto/crypto.c +++ b/sys/crypto/crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.c,v 1.12 2000/07/03 20:38:34 angelos Exp $ */ +/* $OpenBSD: crypto.c,v 1.13 2000/08/19 13:43:23 nate Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) @@ -163,9 +163,8 @@ crypto_get_driverid(void) if (crypto_drivers_num == 0) { crypto_drivers_num = CRYPTO_DRIVERS_INITIAL; - MALLOC(crypto_drivers, struct cryptocap *, - crypto_drivers_num * sizeof(struct cryptocap), M_XDATA, - M_NOWAIT); + crypto_drivers = malloc(crypto_drivers_num * sizeof(struct cryptocap), + M_XDATA, M_NOWAIT); if (crypto_drivers == NULL) { crypto_drivers_num = 0; @@ -188,9 +187,8 @@ crypto_get_driverid(void) if (2 * crypto_drivers_num <= crypto_drivers_num) return -1; - MALLOC(newdrv, struct cryptocap *, - 2 * crypto_drivers_num * sizeof(struct cryptocap), - M_XDATA, M_NOWAIT); + newdrv = malloc(2 * crypto_drivers_num * sizeof(struct cryptocap), + M_XDATA, M_NOWAIT); if (newdrv == NULL) return -1; |