Constify rt_newmsg's arguments
This commit is contained in:
parent
92a1851e6c
commit
3084fea4ef
@ -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 @@ rt_maskedcopy(const struct sockaddr *src, struct sockaddr *dst,
|
||||
* 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;
|
||||
|
||||
|
@ -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_queue_remove_all(struct rttimer_queue *, int);
|
||||
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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user