Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Constify rt_newmsg's arguments
details: https://anonhg.NetBSD.org/src/rev/ef794b084ed3
branches: trunk
changeset: 344365:ef794b084ed3
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu Mar 24 06:18:27 2016 +0000
description:
Constify rt_newmsg's arguments
diffstat:
sys/net/route.c | 6 +++---
sys/net/route.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 2b4080860a87 -r ef794b084ed3 sys/net/route.c
--- a/sys/net/route.c Thu Mar 24 04:28:49 2016 +0000
+++ b/sys/net/route.c Thu Mar 24 06:18:27 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.153 2015/12/22 01:59:21 ozaki-r Exp $ */
+/* $NetBSD: route.c,v 1.154 2016/03/24 06:18:27 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.153 2015/12/22 01:59:21 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.154 2016/03/24 06:18:27 ozaki-r Exp $");
#include <sys/param.h>
#ifdef RTFLUSH_DEBUG
@@ -996,7 +996,7 @@
* Inform the routing socket of a route change.
*/
void
-rt_newmsg(int cmd, struct rtentry *rt)
+rt_newmsg(const int cmd, const struct rtentry *rt)
{
struct rt_addrinfo info;
diff -r 2b4080860a87 -r ef794b084ed3 sys/net/route.h
--- a/sys/net/route.h Thu Mar 24 04:28:49 2016 +0000
+++ b/sys/net/route.h Thu Mar 24 06:18:27 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.h,v 1.96 2015/09/02 11:35:11 ozaki-r Exp $ */
+/* $NetBSD: route.h,v 1.97 2016/03/24 06:18:27 ozaki-r Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -376,7 +376,7 @@
void rt_timer_remove_all(struct rtentry *, int);
void rt_timer_timer(void *);
-void rt_newmsg(int, struct rtentry *);
+void rt_newmsg(const int, const struct rtentry *);
struct rtentry *
rtalloc1(const struct sockaddr *, int);
void rtfree(struct rtentry *);
Home |
Main Index |
Thread Index |
Old Index