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);