From 122a814af56893b9dc5ab0c63c11dc666d1928d4 Mon Sep 17 00:00:00 2001 From: Bosko Milekic Date: Sun, 11 Feb 2001 05:02:06 +0000 Subject: 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. --- sys/kern/uipc_mbuf2.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'sys/kern/uipc_mbuf2.c') diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c index 1ff6a2a03ef0..16e961e2baf4 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; -- cgit v1.2.3