From 9b9765b308a319a1a3c09fdab3629989290a0779 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 29 Jan 2006 15:37:25 +0000 Subject: rename local tty variable to not shadow tty func --- libc/misc/ttyent/getttyent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/misc/ttyent') diff --git a/libc/misc/ttyent/getttyent.c b/libc/misc/ttyent/getttyent.c index 13cbd6c84..e9cc9be2a 100644 --- a/libc/misc/ttyent/getttyent.c +++ b/libc/misc/ttyent/getttyent.c @@ -213,13 +213,13 @@ int endttyent(void) } libc_hidden_def(endttyent) -struct ttyent * getttynam(const char *tty) +struct ttyent * getttynam(const char *_tty) { register struct ttyent *t; setttyent(); while ((t = getttyent())) - if (!strcmp(tty, t->ty_name)) + if (!strcmp(_tty, t->ty_name)) break; endttyent(); return (t); -- cgit v1.2.3