summaryrefslogtreecommitdiffstats
path: root/sys/sys/mbuf.h
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2015-08-08 15:50:46 +0000
committermelifaro <melifaro@FreeBSD.org>2015-08-08 15:50:46 +0000
commit627f722ad6d77b30aafd50db186fa9f1b6706240 (patch)
treec0e98fb5c297ff42c5419971d35efdd17a1508ae /sys/sys/mbuf.h
parent92d4c54d4d96d858992c87acda6738a839490707 (diff)
downloadFreeBSD-src-627f722ad6d77b30aafd50db186fa9f1b6706240.zip
FreeBSD-src-627f722ad6d77b30aafd50db186fa9f1b6706240.tar.gz
Add const-qualifiers for source mbuf argument in m_dup(), m_copym(),
m_dup_pkthdr() and m_tag_copy_chain().
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r--sys/sys/mbuf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 39a41d3..8d33550 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -953,7 +953,7 @@ int m_extadd(struct mbuf *, caddr_t, u_int,
struct mbuf *m_collapse(struct mbuf *, int, int);
void m_copyback(struct mbuf *, int, int, c_caddr_t);
void m_copydata(const struct mbuf *, int, int, caddr_t);
-struct mbuf *m_copym(struct mbuf *, int, int, int);
+struct mbuf *m_copym(const struct mbuf *, int, int, int);
struct mbuf *m_copypacket(struct mbuf *, int);
void m_copy_pkthdr(struct mbuf *, struct mbuf *);
struct mbuf *m_copyup(struct mbuf *, int, int);
@@ -962,8 +962,8 @@ void m_demote_pkthdr(struct mbuf *);
void m_demote(struct mbuf *, int, int);
struct mbuf *m_devget(char *, int, int, struct ifnet *,
void (*)(char *, caddr_t, u_int));
-struct mbuf *m_dup(struct mbuf *, int);
-int m_dup_pkthdr(struct mbuf *, struct mbuf *, int);
+struct mbuf *m_dup(const struct mbuf *, int);
+int m_dup_pkthdr(struct mbuf *, const struct mbuf *, int);
u_int m_fixhdr(struct mbuf *);
struct mbuf *m_fragment(struct mbuf *, int, int);
void m_freem(struct mbuf *);
@@ -1070,7 +1070,7 @@ void m_tag_delete_chain(struct mbuf *, struct m_tag *);
void m_tag_free_default(struct m_tag *);
struct m_tag *m_tag_locate(struct mbuf *, u_int32_t, int, struct m_tag *);
struct m_tag *m_tag_copy(struct m_tag *, int);
-int m_tag_copy_chain(struct mbuf *, struct mbuf *, int);
+int m_tag_copy_chain(struct mbuf *, const struct mbuf *, int);
void m_tag_delete_nonpersistent(struct mbuf *);
/*
OpenPOWER on IntegriCloud