summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-10-10 22:27:31 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-10-10 22:27:31 +0000
commit59b008e23c01d49ba7e969872f82a0f949300d21 (patch)
tree2c0a51cfb4d55fe9e05dbbaa29e10a6aad00c84f /sys
parentd6bab5cdbe6466c848f46b52777ed2ef9fcd17ac (diff)
constify a few strings. various@ ok
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/uipc_socket2.c10
-rw-r--r--sys/sys/socketvar.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c
index 6596a535152..cd18ff1db73 100644
--- a/sys/kern/uipc_socket2.c
+++ b/sys/kern/uipc_socket2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket2.c,v 1.31 2002/08/26 16:39:25 dhartmei Exp $ */
+/* $OpenBSD: uipc_socket2.c,v 1.32 2002/10/10 22:27:30 art Exp $ */
/* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */
/*
@@ -54,10 +54,10 @@
*/
/* strings for sleep message: */
-char netcon[] = "netcon";
-char netcls[] = "netcls";
-char netio[] = "netio";
-char netlck[] = "netlck";
+const char netcon[] = "netcon";
+const char netcls[] = "netcls";
+const char netio[] = "netio";
+const char netlck[] = "netlck";
u_long sb_max = SB_MAX; /* patchable */
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index 500278148b6..f1d0c4989d0 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: socketvar.h,v 1.29 2002/08/08 19:12:33 provos Exp $ */
+/* $OpenBSD: socketvar.h,v 1.30 2002/10/10 22:27:30 art Exp $ */
/* $NetBSD: socketvar.h,v 1.18 1996/02/09 18:25:38 christos Exp $ */
/*-
@@ -221,7 +221,7 @@ extern u_long sb_max;
struct socket *sonewconn(struct socket *head, int connstatus);
/* strings for sleep message: */
-extern char netio[], netcon[], netcls[];
+extern const char netio[], netcon[], netcls[];
extern struct pool socket_pool;