Module Name:    src
Committed By:   skrll
Date:           Sat Aug 27 08:36:41 UTC 2022

Modified Files:
        src/sys/net: rtsock.c

Log Message:
Add a little const. NFC.


To generate a diff of this commit:
cvs rdiff -u -r1.255 -r1.256 src/sys/net/rtsock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/rtsock.c
diff -u src/sys/net/rtsock.c:1.255 src/sys/net/rtsock.c:1.256
--- src/sys/net/rtsock.c:1.255	Mon Mar  9 21:20:55 2020
+++ src/sys/net/rtsock.c	Sat Aug 27 08:36:41 2022
@@ -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 @@ sysctl_rtable(SYSCTLFN_ARGS)
 {
 	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 @@ again:
 	w.w_where = where;
 
 	KERNEL_LOCK_UNLESS_NET_MPSAFE();
-	s = splsoftnet();
+	const int s = splsoftnet();
 	switch (w.w_op) {
 
 	case NET_RT_DUMP:

Reply via email to