summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-09-19 21:34:44 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-09-19 21:34:44 +0000
commita4591103c140486435038d38b1873b078c739ee9 (patch)
treebf2f39423e915a30c02ad043b59d0fab8c16c912 /sys/compat
parent573a1b0063785cad158099921624b2c9e100bae4 (diff)
constify speedtabs and make ttspeedtab() take a const struct speedtab *
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/common/tty_43.c6
-rw-r--r--sys/compat/ibcs2/ibcs2_ioctl.c6
-rw-r--r--sys/compat/sunos/sunos_ioctl.c6
-rw-r--r--sys/compat/ultrix/ultrix_ioctl.c6
4 files changed, 12 insertions, 12 deletions
diff --git a/sys/compat/common/tty_43.c b/sys/compat/common/tty_43.c
index 5c7a322b148..8c7595b548e 100644
--- a/sys/compat/common/tty_43.c
+++ b/sys/compat/common/tty_43.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty_43.c,v 1.8 2003/06/02 23:27:59 millert Exp $ */
+/* $OpenBSD: tty_43.c,v 1.9 2004/09/19 21:34:42 mickey Exp $ */
/* $NetBSD: tty_43.c,v 1.5 1996/05/20 14:29:17 mark Exp $ */
/*-
@@ -54,7 +54,7 @@
int ttydebug = 0;
-static struct speedtab compatspeeds[] = {
+static const struct speedtab compatspeeds[] = {
#define MAX_SPEED 17
{ 115200, 17 },
{ 57600, 16 },
@@ -76,7 +76,7 @@ static struct speedtab compatspeeds[] = {
{ 0, 0 },
{ -1, -1 },
};
-static int compatspcodes[] = {
+static const int compatspcodes[] = {
0, 50, 75, 110, 134, 150, 200, 300, 600, 1200,
1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200
};
diff --git a/sys/compat/ibcs2/ibcs2_ioctl.c b/sys/compat/ibcs2/ibcs2_ioctl.c
index b02eb51978e..90bac72aaeb 100644
--- a/sys/compat/ibcs2/ibcs2_ioctl.c
+++ b/sys/compat/ibcs2/ibcs2_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ibcs2_ioctl.c,v 1.11 2002/03/14 01:26:50 millert Exp $ */
+/* $OpenBSD: ibcs2_ioctl.c,v 1.12 2004/09/19 21:34:42 mickey Exp $ */
/* $NetBSD: ibcs2_ioctl.c,v 1.12 1996/08/10 09:08:26 mycroft Exp $ */
/*
@@ -72,7 +72,7 @@
* iBCS2 ioctl calls.
*/
-static struct speedtab sptab[] = {
+static const struct speedtab sptab[] = {
{ 0, 0 },
{ 50, 1 },
{ 75, 2 },
@@ -93,7 +93,7 @@ static struct speedtab sptab[] = {
{ -1, -1 }
};
-static u_long s2btab[] = {
+static const u_long s2btab[] = {
0,
50,
75,
diff --git a/sys/compat/sunos/sunos_ioctl.c b/sys/compat/sunos/sunos_ioctl.c
index 188f77c14d0..7595ef9ee00 100644
--- a/sys/compat/sunos/sunos_ioctl.c
+++ b/sys/compat/sunos/sunos_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunos_ioctl.c,v 1.15 2004/02/01 15:39:38 miod Exp $ */
+/* $OpenBSD: sunos_ioctl.c,v 1.16 2004/09/19 21:34:43 mickey Exp $ */
/* $NetBSD: sunos_ioctl.c,v 1.23 1996/03/14 19:33:46 christos Exp $ */
/*
@@ -55,7 +55,7 @@
* Support gets added as things turn up....
*/
-static struct speedtab sptab[] = {
+static const struct speedtab sptab[] = {
{ 0, 0 },
{ 50, 1 },
{ 75, 2 },
@@ -76,7 +76,7 @@ static struct speedtab sptab[] = {
{ -1, -1 }
};
-static u_long s2btab[] = {
+static const u_long s2btab[] = {
0,
50,
75,
diff --git a/sys/compat/ultrix/ultrix_ioctl.c b/sys/compat/ultrix/ultrix_ioctl.c
index 9f96b4b5a28..cd719ea24e5 100644
--- a/sys/compat/ultrix/ultrix_ioctl.c
+++ b/sys/compat/ultrix/ultrix_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ultrix_ioctl.c,v 1.10 2003/08/06 21:08:06 millert Exp $ */
+/* $OpenBSD: ultrix_ioctl.c,v 1.11 2004/09/19 21:34:43 mickey Exp $ */
/* $NetBSD: ultrix_ioctl.c,v 1.3.4.1 1996/06/13 18:22:37 jonathan Exp $ */
/* from : NetBSD: sunos_ioctl.c,v 1.21 1995/10/07 06:27:31 mycroft Exp */
@@ -58,7 +58,7 @@
* Support gets added as things turn up....
*/
-static struct speedtab sptab[] = {
+static const struct speedtab sptab[] = {
{ 0, 0 },
{ 50, 1 },
{ 75, 2 },
@@ -79,7 +79,7 @@ static struct speedtab sptab[] = {
{ -1, -1 }
};
-static u_long s2btab[] = {
+static const u_long s2btab[] = {
0,
50,
75,