Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Add a little const. NFC.
details: https://anonhg.NetBSD.org/src/rev/f3f9d55df020
branches: trunk
changeset: 369657:f3f9d55df020
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Aug 27 08:36:41 2022 +0000
description:
Add a little const. NFC.
diffstat:
sys/net/rtsock.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 72f08138cd2e -r f3f9d55df020 sys/net/rtsock.c
--- a/sys/net/rtsock.c Sat Aug 27 08:35:01 2022 +0000
+++ b/sys/net/rtsock.c Sat Aug 27 08:36:41 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtsock.c,v 1.255 2020/03/09 21:20:55 roy Exp $ */
+/* $NetBSD: rtsock.c,v 1.256 2022/08/27 08:36:41 skrll Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.255 2020/03/09 21:20:55 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.256 2022/08/27 08:36:41 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -403,7 +403,7 @@
{
void *where = oldp;
size_t *given = oldlenp;
- int i, s, error = EINVAL;
+ int i, error = EINVAL;
u_char af;
struct rt_walkarg w;
@@ -432,7 +432,7 @@
w.w_where = where;
KERNEL_LOCK_UNLESS_NET_MPSAFE();
- s = splsoftnet();
+ const int s = splsoftnet();
switch (w.w_op) {
case NET_RT_DUMP:
Home |
Main Index |
Thread Index |
Old Index