Constify the addr parameter to sbappenaddr.

This commit is contained in:
matt 2004-04-18 21:47:11 +00:00
parent e8f5e5bba8
commit 91bb3497f5
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uipc_socket2.c,v 1.60 2004/04/18 16:38:42 matt Exp $ */
/* $NetBSD: uipc_socket2.c,v 1.61 2004/04/18 21:47:11 matt Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1990, 1993
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uipc_socket2.c,v 1.60 2004/04/18 16:38:42 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: uipc_socket2.c,v 1.61 2004/04/18 21:47:11 matt Exp $");
#include "opt_mbuftrace.h"
#include "opt_sb_max.h"
@ -695,7 +695,7 @@ sbinsertoob(struct sockbuf *sb, struct mbuf *m0)
* Returns 0 if no space in sockbuf or insufficient mbufs.
*/
int
sbappendaddr(struct sockbuf *sb, struct sockaddr *asa, struct mbuf *m0,
sbappendaddr(struct sockbuf *sb, const struct sockaddr *asa, struct mbuf *m0,
struct mbuf *control)
{
struct mbuf *m, *n, *nlast;

View File

@ -1,4 +1,4 @@
/* $NetBSD: socketvar.h,v 1.72 2004/04/18 21:43:45 matt Exp $ */
/* $NetBSD: socketvar.h,v 1.73 2004/04/18 21:47:11 matt Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1993
@ -279,7 +279,7 @@ int soo_close(struct file *, struct proc *);
int soo_stat(struct file *, struct stat *, struct proc *);
void sbappend(struct sockbuf *, struct mbuf *);
void sbappendstream(struct sockbuf *, struct mbuf *);
int sbappendaddr(struct sockbuf *, struct sockaddr *, struct mbuf *,
int sbappendaddr(struct sockbuf *, const struct sockaddr *, struct mbuf *,
struct mbuf *);
int sbappendcontrol(struct sockbuf *, struct mbuf *, struct mbuf *);
void sbappendrecord(struct sockbuf *, struct mbuf *);