From 04a4f72a3de2dd1a0c3317dc9e00f49055edc142 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 25 May 1997 01:14:33 +0000 Subject: [PATCH] removed const-ness from clean_ttyname git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1761 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/login/tty.c | 12 ++++++------ appl/telnet/telnetd/sys_term.c | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/appl/login/tty.c b/appl/login/tty.c index ff1bd3bc7..c2e0c7eeb 100644 --- a/appl/login/tty.c +++ b/appl/login/tty.c @@ -44,10 +44,10 @@ RCSID("$Id$"); * Clean the tty name. Return a pointer to the cleaned version. */ -const char * -clean_ttyname (const char *tty) +char * +clean_ttyname (char *tty) { - const char *res = tty; + char *res = tty; if (strncmp (res, _PATH_DEV, strlen(_PATH_DEV)) == 0) res += strlen(_PATH_DEV); @@ -62,10 +62,10 @@ clean_ttyname (const char *tty) * Generate a name usable as an `ut_id', typically without `tty'. */ -const char * -make_id (const char *tty) +char * +make_id (char *tty) { - const char *res = tty; + char *res = tty; if (strncmp (res, "pts/", 4) == 0) res += 4; diff --git a/appl/telnet/telnetd/sys_term.c b/appl/telnet/telnetd/sys_term.c index 7d57a20dc..19b70f59c 100644 --- a/appl/telnet/telnetd/sys_term.c +++ b/appl/telnet/telnetd/sys_term.c @@ -1058,10 +1058,10 @@ int login_tty(int t) * Clean the tty name. Return a pointer to the cleaned version. */ -static const char * -clean_ttyname (const char *tty) +static char * +clean_ttyname (char *tty) { - const char *res = tty; + char *res = tty; if (strncmp (res, _PATH_DEV, strlen(_PATH_DEV)) == 0) res += strlen(_PATH_DEV);