summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2005-05-31 00:45:52 +0000
committerchristos <christos@NetBSD.org>2005-05-31 00:45:52 +0000
commit1475e6ed5cb490eba2b6e3eb32d368b3875e0ffe (patch)
tree219e25a3e55bf2c18e73a945ea7d0b88c3d3fb60 /sys/dev
parentb0a8a83e7bcf78a405c59d9643328898e125e38f (diff)
- add const
- avoid variable shadow
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/z8530tty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/z8530tty.c b/sys/dev/ic/z8530tty.c
index 2be5eb2d22b..3e5135b25ef 100644
--- a/sys/dev/ic/z8530tty.c
+++ b/sys/dev/ic/z8530tty.c
@@ -1,4 +1,4 @@
-/* $NetBSD: z8530tty.c,v 1.97 2005/02/27 00:27:03 perry Exp $ */
+/* $NetBSD: z8530tty.c,v 1.98 2005/05/31 00:45:52 christos Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998, 1999
@@ -137,7 +137,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: z8530tty.c,v 1.97 2005/02/27 00:27:03 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: z8530tty.c,v 1.98 2005/05/31 00:45:52 christos Exp $");
#include "opt_kgdb.h"
#include "opt_ntp.h"
@@ -327,7 +327,7 @@ zstty_attach(parent, self, aux)
struct tty *tp;
int channel, s, tty_unit;
dev_t dev;
- char *i, *o;
+ const char *i, *o;
int dtr_on;
int resetbit;
@@ -1721,7 +1721,7 @@ zstty_rxsoft(zst, tp)
struct tty *tp;
{
struct zs_chanstate *cs = zst->zst_cs;
- int (*rint)(int c, struct tty *tp) = tp->t_linesw->l_rint;
+ int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
u_char *get, *end;
u_int cc, scc;
u_char rr1;