summaryrefslogtreecommitdiffstats
path: root/sys/dev/digi
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-05-22 18:10:57 +0000
committerbrian <brian@FreeBSD.org>2001-05-22 18:10:57 +0000
commit7fdccd5e4cee994ff0f756def1c2ec06481c5695 (patch)
tree5173ce3fc2570fab4b8999a1c9ce9d528dffd723 /sys/dev/digi
parent24ad56d2edb8c1e87197afc2d16e6dbe5acd0d6c (diff)
downloadFreeBSD-src-7fdccd5e4cee994ff0f756def1c2ec06481c5695.zip
FreeBSD-src-7fdccd5e4cee994ff0f756def1c2ec06481c5695.tar.gz
MALLOC -> malloc, FREE -> free
Diffstat (limited to 'sys/dev/digi')
-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 ce123ac..fca5845 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;
}
OpenPOWER on IntegriCloud