diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-09-18 19:42:06 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-09-18 19:42:06 +0000 |
| commit | 4e4425d48656e463b3f1204bdb4db7abadf0e9eb (patch) | |
| tree | f3c4ca1a44e24c6d6f1d933546a4dcca939a6e33 /sys | |
| parent | 873caac4992b1464377d2c36932a75ee31666d85 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/uipc_mbuf.c | 8 | ||||
| -rw-r--r-- | sys/sys/mbuf.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 009b812b0bcf..1ec68bccf34c 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -711,21 +711,21 @@ m_print(const struct mbuf *m) return; } -int +unsigned m_fixhdr(struct mbuf *m0) { - int len; + unsigned len; len = m_length(m0, NULL); m0->m_pkthdr.len = len; return (len); } -int +unsigned m_length(struct mbuf *m0, struct mbuf **last) { struct mbuf *m; - int len; + unsigned len; len = 0; for (m = m0; m != NULL; m = m->m_next) { diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index b4bd624a29d9..d4152b8d84c6 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -480,7 +480,7 @@ void m_copy_pkthdr(struct mbuf *to, struct mbuf *from); struct mbuf *m_devget(char *, int, int, struct ifnet *, void (*copy)(char *, caddr_t, u_int)); struct mbuf *m_dup(struct mbuf *, int); -int m_fixhdr(struct mbuf *m); +unsigned m_fixhdr(struct mbuf *m); struct mbuf *m_free(struct mbuf *); void m_freem(struct mbuf *); struct mbuf *m_get(int, short); @@ -489,7 +489,7 @@ struct mbuf *m_getcl(int, short, int); struct mbuf *m_gethdr(int, short); struct mbuf *m_gethdr_clrd(int, short); struct mbuf *m_getm(struct mbuf *, int, int, short); -int m_length(struct mbuf *m, struct mbuf **l); +unsigned m_length(struct mbuf *m, struct mbuf **l); struct mbuf *m_prepend(struct mbuf *, int, int); void m_print(const struct mbuf *m); struct mbuf *m_pulldown(struct mbuf *, int, int, int *); |
