summaryrefslogtreecommitdiffstats
path: root/sys/fs/ntfs/ntfs_vfsops.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2008-10-23 15:53:51 +0000
committerdes <des@FreeBSD.org>2008-10-23 15:53:51 +0000
commit66f807ed8b3634dc73d9f7526c484e43f094c0ee (patch)
tree21e792ce590e1bcf9b343890605a1b4c6a9016b3 /sys/fs/ntfs/ntfs_vfsops.c
parenta779c60ce0a41cd14710a8a12cfa22955108b27a (diff)
downloadFreeBSD-src-66f807ed8b3634dc73d9f7526c484e43f094c0ee.zip
FreeBSD-src-66f807ed8b3634dc73d9f7526c484e43f094c0ee.tar.gz
Retire the MALLOC and FREE macros. They are an abomination unto style(9).
MFC after: 3 months
Diffstat (limited to 'sys/fs/ntfs/ntfs_vfsops.c')
-rw-r--r--sys/fs/ntfs/ntfs_vfsops.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c
index 86ff17a..6baaca1 100644
--- a/sys/fs/ntfs/ntfs_vfsops.c
+++ b/sys/fs/ntfs/ntfs_vfsops.c
@@ -416,8 +416,7 @@ ntfs_mountfs(devvp, mp, td)
}
/* Alloc memory for attribute definitions */
- MALLOC(ntmp->ntm_ad, struct ntvattrdef *,
- num * sizeof(struct ntvattrdef),
+ ntmp->ntm_ad = malloc( num * sizeof(struct ntvattrdef),
M_NTFSMNT, M_WAITOK);
ntmp->ntm_adnum = num;
@@ -526,8 +525,8 @@ ntfs_unmount(
MNT_ILOCK(mp);
mp->mnt_flag &= ~MNT_LOCAL;
MNT_IUNLOCK(mp);
- FREE(ntmp->ntm_ad, M_NTFSMNT);
- FREE(ntmp, M_NTFSMNT);
+ free(ntmp->ntm_ad, M_NTFSMNT);
+ free(ntmp, M_NTFSMNT);
return (error);
}
@@ -568,7 +567,7 @@ ntfs_calccfree(
bmsize = VTOF(vp)->f_size;
- MALLOC(tmp, u_int8_t *, bmsize, M_TEMP, M_WAITOK);
+ tmp = malloc(bmsize, M_TEMP, M_WAITOK);
error = ntfs_readattr(ntmp, VTONT(vp), NTFS_A_DATA, NULL,
0, bmsize, tmp, NULL);
@@ -581,7 +580,7 @@ ntfs_calccfree(
*cfreep = cfree;
out:
- FREE(tmp, M_TEMP);
+ free(tmp, M_TEMP);
return(error);
}
OpenPOWER on IntegriCloud