Constify a few read-only arrays/variables.

This commit is contained in:
matt 2004-04-25 06:02:20 +00:00
parent 3f800573aa
commit 48011c94e7
3 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sunos_misc.c,v 1.127 2004/04/22 10:18:03 hannken Exp $ */
/* $NetBSD: sunos_misc.c,v 1.128 2004/04/25 06:02:20 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.127 2004/04/22 10:18:03 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.128 2004/04/25 06:02:20 matt Exp $");
#if defined(_KERNEL_OPT)
#include "opt_nfsserver.h"
@ -684,7 +684,7 @@ sunos_sys_setsockopt(l, v, retval)
#define SUNOS_IP_MULTICAST_LOOP 4
#define SUNOS_IP_ADD_MEMBERSHIP 5
#define SUNOS_IP_DROP_MEMBERSHIP 6
static int ipoptxlat[] = {
static const int ipoptxlat[] = {
IP_MULTICAST_IF,
IP_MULTICAST_TTL,
IP_MULTICAST_LOOP,

View File

@ -1,4 +1,4 @@
/* $NetBSD: sunos32_misc.c,v 1.26 2004/04/22 14:32:09 hannken Exp $ */
/* $NetBSD: sunos32_misc.c,v 1.27 2004/04/25 06:02:20 matt Exp $ */
/* from :NetBSD: sunos_misc.c,v 1.107 2000/12/01 19:25:10 jdolecek Exp */
/*
@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.26 2004/04/22 14:32:09 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.27 2004/04/25 06:02:20 matt Exp $");
#define COMPAT_SUNOS 1
@ -928,7 +928,7 @@ sunos32_sys_setsockopt(l, v, retval)
#define SUNOS_IP_MULTICAST_LOOP 4
#define SUNOS_IP_ADD_MEMBERSHIP 5
#define SUNOS_IP_DROP_MEMBERSHIP 6
static int ipoptxlat[] = {
static const int ipoptxlat[] = {
IP_MULTICAST_IF,
IP_MULTICAST_TTL,
IP_MULTICAST_LOOP,
@ -1455,13 +1455,13 @@ sunos32_sys_setrlimit(l, v, retval)
#define PT_SETFPREGS -1
#endif
static int sreq2breq[] = {
static const int sreq2breq[] = {
PT_TRACE_ME, PT_READ_I, PT_READ_D, -1,
PT_WRITE_I, PT_WRITE_D, -1, PT_CONTINUE,
PT_KILL, -1, PT_ATTACH, PT_DETACH,
PT_GETREGS, PT_SETREGS, PT_GETFPREGS, PT_SETFPREGS
};
static int nreqs = sizeof(sreq2breq) / sizeof(sreq2breq[0]);
static const int nreqs = sizeof(sreq2breq) / sizeof(sreq2breq[0]);
int
sunos32_sys_ptrace(l, v, retval)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ultrix_misc.c,v 1.93 2004/04/21 07:05:07 simonb Exp $ */
/* $NetBSD: ultrix_misc.c,v 1.94 2004/04/25 06:02:20 matt Exp $ */
/*
* Copyright (c) 1995, 1997 Jonathan Stone (hereinafter referred to as the author)
@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ultrix_misc.c,v 1.93 2004/04/21 07:05:07 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: ultrix_misc.c,v 1.94 2004/04/25 06:02:20 matt Exp $");
#if defined(_KERNEL_OPT)
#include "opt_nfsserver.h"
@ -359,7 +359,7 @@ ultrix_sys_setsockopt(struct lwp *l, void *v, register_t *retval)
#define EMUL_IP_MULTICAST_LOOP 4
#define EMUL_IP_ADD_MEMBERSHIP 5
#define EMUL_IP_DROP_MEMBERSHIP 6
static int ipoptxlat[] = {
static const int ipoptxlat[] = {
IP_MULTICAST_IF,
IP_MULTICAST_TTL,
IP_MULTICAST_LOOP,