Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Constify argument to ttyldisc_lookup and ttyldisc_remove.
details: https://anonhg.NetBSD.org/src/rev/c4cf97c2d0cf
branches: trunk
changeset: 581758:c4cf97c2d0cf
user: uwe <uwe%NetBSD.org@localhost>
date: Sat Jun 04 22:45:11 2005 +0000
description:
Constify argument to ttyldisc_lookup and ttyldisc_remove.
diffstat:
sys/kern/tty_conf.c | 8 ++++----
sys/sys/conf.h | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (56 lines):
diff -r 3b22b939b1d7 -r c4cf97c2d0cf sys/kern/tty_conf.c
--- a/sys/kern/tty_conf.c Sat Jun 04 22:40:03 2005 +0000
+++ b/sys/kern/tty_conf.c Sat Jun 04 22:45:11 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tty_conf.c,v 1.45 2005/04/10 14:28:11 itohy Exp $ */
+/* $NetBSD: tty_conf.c,v 1.46 2005/06/04 22:45:12 uwe Exp $ */
/*-
* Copyright (c) 1982, 1986, 1991, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_conf.c,v 1.45 2005/04/10 14:28:11 itohy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_conf.c,v 1.46 2005/06/04 22:45:12 uwe Exp $");
#include "opt_compat_freebsd.h"
#include "opt_compat_43.h"
@@ -242,7 +242,7 @@
*/
struct linesw *
ttyldisc_remove(name)
- char *name;
+ const char *name;
{
struct linesw *disc;
int i;
@@ -272,7 +272,7 @@
*/
struct linesw *
ttyldisc_lookup(name)
- char *name;
+ const char *name;
{
int i;
diff -r 3b22b939b1d7 -r c4cf97c2d0cf sys/sys/conf.h
--- a/sys/sys/conf.h Sat Jun 04 22:40:03 2005 +0000
+++ b/sys/sys/conf.h Sat Jun 04 22:45:11 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.h,v 1.117 2005/05/29 21:19:41 christos Exp $ */
+/* $NetBSD: conf.h,v 1.118 2005/06/04 22:45:11 uwe Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -174,8 +174,8 @@
extern int nlinesw;
extern void ttyldisc_init(void);
int ttyldisc_add(struct linesw *, int);
-struct linesw *ttyldisc_remove(char *);
-struct linesw *ttyldisc_lookup(char *);
+struct linesw *ttyldisc_remove(const char *);
+struct linesw *ttyldisc_lookup(const char *);
/* For those defining their own line disciplines: */
#define ttynodisc ((int (*)(dev_t, struct tty *))enodev)
Home |
Main Index |
Thread Index |
Old Index