diff options
author | archie <archie@FreeBSD.org> | 2002-06-05 23:35:31 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2002-06-05 23:35:31 +0000 |
commit | d14167a565aab69bc2db27d9d58542b7214b3d26 (patch) | |
tree | 79c438e42f33c8b1d1266d5cc137cdd578828f7e /sys/netgraph/ng_socket.c | |
parent | a615d0fcdd4032388124d4b85e81fe3baa903ce5 (diff) | |
download | FreeBSD-src-d14167a565aab69bc2db27d9d58542b7214b3d26.zip FreeBSD-src-d14167a565aab69bc2db27d9d58542b7214b3d26.tar.gz |
Const'ify variables to make it clear we're not writing to the mbuf data.
Reviewed by: julian, brian
MFC after: 1 week
Diffstat (limited to 'sys/netgraph/ng_socket.c')
-rw-r--r-- | sys/netgraph/ng_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c index 09d1c46..43475ef 100644 --- a/sys/netgraph/ng_socket.c +++ b/sys/netgraph/ng_socket.c @@ -571,7 +571,7 @@ ng_detach_common(struct ngpcb *pcbp, int which) static int ng_internalize(struct mbuf *control, struct thread *td) { - struct cmsghdr *cm = mtod(control, struct cmsghdr *); + const struct cmsghdr *cm = mtod(control, const struct cmsghdr *); struct file *fp; struct vnode *vn; int oldfds; |