summaryrefslogtreecommitdiffstats
path: root/sys/netncp/ncp_subr.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/netncp/ncp_subr.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/netncp/ncp_subr.c')
-rw-r--r--sys/netncp/ncp_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netncp/ncp_subr.c b/sys/netncp/ncp_subr.c
index fd7969a..da0a6d9 100644
--- a/sys/netncp/ncp_subr.c
+++ b/sys/netncp/ncp_subr.c
@@ -73,7 +73,7 @@ ncp_str_dup(char *s) {
len++;
if (bt == 0) break;
}
- MALLOC(p, char*, len, M_NCPDATA, M_WAITOK);
+ p = malloc(len, M_NCPDATA, M_WAITOK);
copyin(s, p, len);
return p;
}
OpenPOWER on IntegriCloud