Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Constify the addr parameter to sbappenaddr.



details:   https://anonhg.NetBSD.org/src/rev/2d21f072ccee
branches:  trunk
changeset: 565721:2d21f072ccee
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Apr 18 21:47:11 2004 +0000

description:
Constify the addr parameter to sbappenaddr.

diffstat:

 sys/kern/uipc_socket2.c |  6 +++---
 sys/sys/socketvar.h     |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 19c568e0dbc7 -r 2d21f072ccee sys/kern/uipc_socket2.c
--- a/sys/kern/uipc_socket2.c   Sun Apr 18 21:43:45 2004 +0000
+++ b/sys/kern/uipc_socket2.c   Sun Apr 18 21:47:11 2004 +0000
@@ -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 @@
  * 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;
diff -r 19c568e0dbc7 -r 2d21f072ccee sys/sys/socketvar.h
--- a/sys/sys/socketvar.h       Sun Apr 18 21:43:45 2004 +0000
+++ b/sys/sys/socketvar.h       Sun Apr 18 21:47:11 2004 +0000
@@ -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_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 *);



Home | Main Index | Thread Index | Old Index