aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/digi/digi.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-05-22 18:10:57 +0000
committerBrian Somers <brian@FreeBSD.org>2001-05-22 18:10:57 +0000
commit6ce76643aa6a03cb46eb8c60e5d9c67d2fe19171 (patch)
tree1c3f97d131c5643af3a585592bbc02385bb0bcf3 /sys/dev/digi/digi.c
parent8d67252492bc0539844ca5103ec7e81724023f44 (diff)
downloadsrc-6ce76643aa6a03cb46eb8c60e5d9c67d2fe19171.tar.gz
src-6ce76643aa6a03cb46eb8c60e5d9c67d2fe19171.zip
MALLOC -> malloc, FREE -> free
Notes
Notes: svn path=/head/; revision=77004
Diffstat (limited to 'sys/dev/digi/digi.c')
-rw-r--r--sys/dev/digi/digi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/digi/digi.c b/sys/dev/digi/digi.c
index ce123ac7d86f..fca5845908d2 100644
--- a/sys/dev/digi/digi.c
+++ b/sys/dev/digi/digi.c
@@ -555,12 +555,12 @@ digi_init(struct digi_softc *sc)
if (sc->ports)
free(sc->ports, M_TTYS);
- MALLOC(sc->ports, struct digi_p *,
- sizeof(struct digi_p) * sc->numports, M_TTYS, M_WAIT | M_ZERO);
+ sc->ports = malloc(sizeof(struct digi_p) * sc->numports,
+ M_TTYS, M_WAIT | M_ZERO);
if (sc->ttys)
free(sc->ttys, M_TTYS);
- MALLOC(sc->ttys, struct tty *, sizeof(struct tty) * sc->numports,
+ sc->ttys = malloc(sizeof(struct tty) * sc->numports,
M_TTYS, M_WAIT | M_ZERO);
/*
@@ -1849,9 +1849,9 @@ digi_free_state(struct digi_softc *sc)
if (sc->numports) {
KASSERT(sc->ports, ("digi%d: Lost my ports ?", sc->res.unit));
KASSERT(sc->ttys, ("digi%d: Lost my ttys ?", sc->res.unit));
- FREE(sc->ports, M_TTYS);
+ free(sc->ports, M_TTYS);
sc->ports = NULL;
- FREE(sc->ttys, M_TTYS);
+ free(sc->ttys, M_TTYS);
sc->ttys = NULL;
sc->numports = 0;
}