summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-05-26 07:17:11 +0000
committerangelos <angelos@openbsd.org>2001-05-26 07:17:11 +0000
commit9c5ad655f42d9c70ae96c219205e77cc2b37a5e7 (patch)
treea84dcc19d563eccf3af79b8300fc56f98dc2e424 /sys
parentNo such thing as MT_PCB (anymore?) -- just use MALLOC/free to allocate (diff)
downloadwireguard-openbsd-9c5ad655f42d9c70ae96c219205e77cc2b37a5e7.tar.xz
wireguard-openbsd-9c5ad655f42d9c70ae96c219205e77cc2b37a5e7.zip
Use MALLOC/FREE to allocate/free PCBs, instead of using MT_PCB
mbuf/clusters. My first commit of this died halfway through, so although it did make it in, there was no message sent to the list.
Diffstat (limited to 'sys')
-rw-r--r--sys/netatalk/ddp_usrreq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netatalk/ddp_usrreq.c b/sys/netatalk/ddp_usrreq.c
index 2b2ab3dd2dc..a2285883e92 100644
--- a/sys/netatalk/ddp_usrreq.c
+++ b/sys/netatalk/ddp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ddp_usrreq.c,v 1.3 2001/05/26 07:14:02 angelos Exp $ */
+/* $OpenBSD: ddp_usrreq.c,v 1.4 2001/05/26 07:17:11 angelos Exp $ */
/*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
@@ -462,7 +462,7 @@ at_pcballoc( so )
{
struct ddpcb *ddp;
- MALLOC(ddp, struct ddpcb *, sizeof(*ddp), M_PCB, M_NOWAIT);
+ MALLOC( ddp, struct ddpcb *, sizeof(*ddp), M_PCB, M_NOWAIT );
if ( ddp == NULL ) {
return (ENOBUFS);
}
@@ -517,7 +517,7 @@ at_pcbdetach( so, ddp )
ddp->ddp_next->ddp_prev = ddp->ddp_prev;
}
- free(ddp, M_PCB);
+ FREE( ddp, M_PCB );
}
/*