summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-05-19 18:42:14 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-05-19 18:42:14 +0000
commit5d2ff6359ca4a53dc1c448b39265f3ecd2ed8429 (patch)
tree68989f90b67654dca08e3b35f7ba9a6712417e8e /sys/arch/zaurus
parentfa629703d5a7a82270cb5b8557a7eb07f52743af (diff)
Change all remaining MD uses of MALLOC and FREE into proper malloc() and
free() calls; prodded by chl@, ok krw@
Diffstat (limited to 'sys/arch/zaurus')
-rw-r--r--sys/arch/zaurus/dev/zaurus_flash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_flash.c b/sys/arch/zaurus/dev/zaurus_flash.c
index cef7861152c..23dcfcb9b18 100644
--- a/sys/arch/zaurus/dev/zaurus_flash.c
+++ b/sys/arch/zaurus/dev/zaurus_flash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_flash.c,v 1.7 2008/04/18 06:42:21 djm Exp $ */
+/* $OpenBSD: zaurus_flash.c,v 1.8 2008/05/19 18:42:13 miod Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org>
@@ -650,7 +650,7 @@ zflash_safe_start(struct zflash_softc *sc, dev_t dev)
phyuse = (u_int16_t *)malloc(sp->sp_pblks * sizeof(u_int16_t),
M_DEVBUF, M_NOWAIT);
if (phyuse == NULL) {
- FREE(sp, M_DEVBUF);
+ free(sp, M_DEVBUF);
return ENOMEM;
}
sp->sp_phyuse = phyuse;
@@ -659,8 +659,8 @@ zflash_safe_start(struct zflash_softc *sc, dev_t dev)
logmap = (u_int *)malloc(sp->sp_lblks * sizeof(u_int),
M_DEVBUF, M_NOWAIT);
if (logmap == NULL) {
- FREE(phyuse, M_DEVBUF);
- FREE(sp, M_DEVBUF);
+ free(phyuse, M_DEVBUF);
+ free(sp, M_DEVBUF);
return ENOMEM;
}
sp->sp_logmap = logmap;