style: Remove remaining deprecated MALLOC/FREE macros
authorcem <cem@FreeBSD.org>
Thu, 25 Jan 2018 22:25:13 +0000 (22:25 +0000)
committercem <cem@FreeBSD.org>
Thu, 25 Jan 2018 22:25:13 +0000 (22:25 +0000)
commitc060d198e33c0a7d63588e70d353ab146aab3f81
tree7c194451dd8b6870342def7cde7197bbe9679329
parent848a9a5ec46b1755dfbbb693f27f8fb59e2f288f
style: Remove remaining deprecated MALLOC/FREE macros

Mechanically replace uses of MALLOC/FREE with appropriate invocations of
malloc(9) / free(9) (a series of sed expressions).  Something like:

* MALLOC(a, b, ... -> a = malloc(...
* FREE( -> free(
* free((caddr_t) -> free(

No functional change.

For now, punt on modifying contrib ipfilter code, leaving a definition of
the macro in its KMALLOC().

Reported by: jhb
Reviewed by: cy, imp, markj, rmacklem
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D14035
20 files changed:
sys/contrib/ipfilter/netinet/ip_compat.h
sys/fs/nfs/nfs_commonkrpc.c
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfsport.h
sys/fs/nfsclient/nfs_clcomsubs.c
sys/fs/nfsclient/nfs_clnode.c
sys/fs/nfsclient/nfs_clport.c
sys/fs/nfsclient/nfs_clrpcops.c
sys/fs/nfsclient/nfs_clstate.c
sys/fs/nfsclient/nfs_clsubs.c
sys/fs/nfsclient/nfs_clvfsops.c
sys/fs/nfsclient/nfs_clvnops.c
sys/fs/nfsclient/nfsnode.h
sys/fs/nfsserver/nfs_nfsdcache.c
sys/fs/nfsserver/nfs_nfsdport.c
sys/fs/nfsserver/nfs_nfsdserv.c
sys/fs/nfsserver/nfs_nfsdstate.c
sys/netinet/ip_mroute.c
sys/nfsclient/nfsnode.h
sys/sys/malloc.h