mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make m_length() and m_fixhdr() return unsigned.
Suggested by: arr
This commit is contained in:
parent
873caac499
commit
4e4425d486
2 changed files with 6 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 *);
|
||||
|
|
|
|||
Loading…
Reference in a new issue