diff options
author | Bosko Milekic <bmilekic@FreeBSD.org> | 2001-02-11 05:02:06 +0000 |
---|---|---|
committer | Bosko Milekic <bmilekic@FreeBSD.org> | 2001-02-11 05:02:06 +0000 |
commit | 122a814af56893b9dc5ab0c63c11dc666d1928d4 (patch) | |
tree | 526d6ca2a9d94ee9240d59e5dc475d69d8aa3ea9 /sys/kern/uipc_mbuf2.c | |
parent | 410b55671480aab7f6f1360bc180afbfbcb877a4 (diff) |
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.
Notes
Notes:
svn path=/head/; revision=72356
Diffstat (limited to 'sys/kern/uipc_mbuf2.c')
-rw-r--r-- | sys/kern/uipc_mbuf2.c | 17 |
1 files changed, 4 insertions, 13 deletions
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; |