summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_mbuf2.c
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2001-02-11 05:02:06 +0000
committerbmilekic <bmilekic@FreeBSD.org>2001-02-11 05:02:06 +0000
commitcc52eb42bff57e11d166025d0d19cae8152a462d (patch)
tree6f7fbc2dfdc36722e05eee5d7a333554c18e06eb /sys/kern/uipc_mbuf2.c
parent926106984626815780dccf031165faba4bbb86fb (diff)
downloadFreeBSD-src-cc52eb42bff57e11d166025d0d19cae8152a462d.zip
FreeBSD-src-cc52eb42bff57e11d166025d0d19cae8152a462d.tar.gz
Long awaited style fixup in mbuf code. Get rid of K&R style prototyping
and function argument declarations. Make sure that functions that are supposed to return a pointer return NULL in case of failure. Don't cast NULL. Finally, get rid of annoying `register' uses.
Diffstat (limited to 'sys/kern/uipc_mbuf2.c')
-rw-r--r--sys/kern/uipc_mbuf2.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c
index 1ff6a2a..16e961e 100644
--- a/sys/kern/uipc_mbuf2.c
+++ b/sys/kern/uipc_mbuf2.c
@@ -84,10 +84,7 @@
* XXX: M_TRAILINGSPACE/M_LEADINGSPACE only permitted on writable ext_buf.
*/
struct mbuf *
-m_pulldown(m, off, len, offp)
- struct mbuf *m;
- int off, len;
- int *offp;
+m_pulldown(struct mbuf *m, int off, int len, int *offp)
{
struct mbuf *n, *o;
int hlen, tlen, olen;
@@ -271,9 +268,7 @@ ok:
* we don't allow clusters at this moment.
*/
struct mbuf *
-m_aux_add(m, af, type)
- struct mbuf *m;
- int af, type;
+m_aux_add(struct mbuf *m, int af, int type)
{
struct mbuf *n;
struct mauxtag *t;
@@ -300,9 +295,7 @@ m_aux_add(m, af, type)
}
struct mbuf *
-m_aux_find(m, af, type)
- struct mbuf *m;
- int af, type;
+m_aux_find(struct mbuf *m, int af, int type)
{
struct mbuf *n;
struct mauxtag *t;
@@ -319,9 +312,7 @@ m_aux_find(m, af, type)
}
void
-m_aux_delete(m, victim)
- struct mbuf *m;
- struct mbuf *victim;
+m_aux_delete(struct mbuf *m, struct mbuf *victim)
{
struct mbuf *n, *prev, *next;
struct mauxtag *t;
OpenPOWER on IntegriCloud